Skip to content

Commit

Permalink
fix: normalize finish reason in CreateResult response
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhu committed Jan 16, 2025
1 parent 2e1a9c7 commit 0c6cd35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ async def create(
for x in choice.logprobs.content
]
response = CreateResult(
finish_reason=finish_reason, # type: ignore
finish_reason=normalize_stop_reason(finish_reason),
content=content,
usage=usage,
cached=False,
Expand Down

0 comments on commit 0c6cd35

Please sign in to comment.