Skip to content

Default finish_reason to "stop" instead of unsupported "finished"#232

Open
AlienKevin wants to merge 1 commit intoerfanzar:mainfrom
AlienKevin:fix-finish-reason
Open

Default finish_reason to "stop" instead of unsupported "finished"#232
AlienKevin wants to merge 1 commit intoerfanzar:mainfrom
AlienKevin:fix-finish-reason

Conversation

@AlienKevin
Copy link

This PR changes finish_reason in esurge to default to "stop". Otherwise, /v1/completion requests throw a pydantic Exception since the current default "finished" is not a valid option:

finish_reason: tp.Literal["stop", "length", "function_call"] | None = None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments