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

This commit is contained in:
VoidIsVoid 2024-03-18 13:17:16 +08:00 committed by GitHub
parent 6fd1795d25
commit 83145486b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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