Skip to content

Commit

Permalink
feat: forward zhipu finish_reason (#7560)
Browse files Browse the repository at this point in the history
  • Loading branch information
orangeclk authored Aug 23, 2024
1 parent a40073a commit a247177
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 a247177

Please sign in to comment.