mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-20 19:36:08 +00:00
feat:add deepseek and modelscope llm stream,and giteeai think in content remove_think
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user