From a24717765e5dd63519549a893230ae24fe6a4269 Mon Sep 17 00:00:00 2001 From: orangeclk Date: Fri, 23 Aug 2024 11:15:38 +0800 Subject: [PATCH] feat: forward zhipu finish_reason (#7560) --- api/core/model_runtime/model_providers/zhipuai/llm/llm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/model_runtime/model_providers/zhipuai/llm/llm.py b/api/core/model_runtime/model_providers/zhipuai/llm/llm.py index ff971964a..13d8f5e5c 100644 --- a/api/core/model_runtime/model_providers/zhipuai/llm/llm.py +++ b/api/core/model_runtime/model_providers/zhipuai/llm/llm.py @@ -444,6 +444,7 @@ class ZhipuAILargeLanguageModel(_CommonZhipuaiAI, LargeLanguageModel): delta=LLMResultChunkDelta( index=delta.index, message=assistant_prompt_message, + finish_reason=delta.finish_reason ) )