浏览代码

fix: fix unstable function call response arguments missing (#2872)

tags/0.5.10
VoidIsVoid 1年前
父节点
当前提交
83145486b0
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      api/core/model_runtime/model_providers/openai/llm/llm.py

+ 2
- 0
api/core/model_runtime/model_providers/openai/llm/llm.py 查看文件

if assistant_message_function_call: if assistant_message_function_call:
# start of stream function call # start of stream function call
delta_assistant_message_function_call_storage = assistant_message_function_call delta_assistant_message_function_call_storage = assistant_message_function_call
if delta_assistant_message_function_call_storage.arguments is None:
delta_assistant_message_function_call_storage.arguments = ''
if not has_finish_reason: if not has_finish_reason:
continue continue



正在加载...
取消
保存