feat:add deepseek and modelscope llm stream,and giteeai think in content remove_think

This commit is contained in:
Dong_master
2025-07-14 23:53:55 +08:00
committed by Junyan Qin
parent f84a79bf74
commit a7d638cc9a
4 changed files with 226 additions and 6 deletions
@@ -49,10 +49,12 @@ class DeepseekChatCompletions(chatcmpl.OpenAIChatCompletions):
# 发送请求
resp = await self._req(args, extra_body=extra_args)
# print(resp)
if resp is None:
raise errors.RequesterError('接口返回为空,请确定模型提供商服务是否正常')
pipeline_config = query.pipeline_config
# 处理请求结果
message = await self._make_msg(resp)
message = await self._make_msg(resp,pipeline_config)
return message