Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
use value of finish_reason again
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Sep 16, 2024
1 parent 7c39a31 commit 685287f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/leapfrogai_sdk/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_chat_completion_response(
choices=[choice], usage=usage
)

response.choices[0].finish_reason = finish_reason
response.choices[0].finish_reason = finish_reason.value

return response

Expand All @@ -95,7 +95,7 @@ def create_completion_response(

response: CompletionResponse = CompletionResponse(choices=[choice], usage=usage)

response.choices[0].finish_reason = finish_reason
response.choices[0].finish_reason = finish_reason.value

return response

Expand Down

0 comments on commit 685287f

Please sign in to comment.