Skip to content

Commit

Permalink
feat: forward zhipu finish_reason
Browse files Browse the repository at this point in the history
  • Loading branch information
orangeclk committed Aug 23, 2024
1 parent 0006c6f commit 8b9013b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/core/model_runtime/model_providers/zhipuai/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ def _handle_generate_stream_response(self, model: str,
delta=LLMResultChunkDelta(
index=delta.index,
message=assistant_prompt_message,
finish_reason=delta.finish_reason
)
)

Expand Down

0 comments on commit 8b9013b

Please sign in to comment.