Преглед изворни кода

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

tags/0.5.10
VoidIsVoid пре 1 година
родитељ
комит
83145486b0
No account linked to committer's email address
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 Прегледај датотеку

@@ -656,6 +656,8 @@ class OpenAILargeLanguageModel(_CommonOpenAI, LargeLanguageModel):
if assistant_message_function_call:
# start of stream 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:
continue


Loading…
Откажи
Сачувај