mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 00:55:53 +08:00
fix(api/core/model_runtime/model_providers/azure_openai/llm/llm.py): Try to skip if delta.delta
is None. (#6727)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
cf258b7a67
commit
83af50368f
@ -375,6 +375,10 @@ class AzureOpenAILargeLanguageModel(_CommonAzureOpenAI, LargeLanguageModel):
|
||||
continue
|
||||
|
||||
delta = chunk.choices[0]
|
||||
# NOTE: For fix https://github.com/langgenius/dify/issues/5790
|
||||
if delta.delta is None:
|
||||
continue
|
||||
|
||||
|
||||
# extract tool calls from response
|
||||
self._update_tool_calls(tool_calls=tool_calls, tool_calls_response=delta.delta.tool_calls)
|
||||
|
Loading…
x
Reference in New Issue
Block a user