Explorar o código

feat: forward zhipu finish_reason (#7560)

orangeclk hai 8 meses
pai
achega
a24717765e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      api/core/model_runtime/model_providers/zhipuai/llm/llm.py

+ 1 - 0
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
                     )
                 )