mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: fix unstable function call response arguments missing (#2872)
This commit is contained in:
@@ -656,6 +656,8 @@ class OpenAILargeLanguageModel(_CommonOpenAI, LargeLanguageModel):
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user