Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle and return all finishreasons #5

Open
lalalune opened this issue Aug 8, 2023 · 0 comments
Open

Handle and return all finishreasons #5

lalalune opened this issue Aug 8, 2023 · 0 comments

Comments

@lalalune
Copy link
Member

lalalune commented Aug 8, 2023

We should make sure that we're properly handling all the finishreason cases properly in our inner loops and returning the final to the user

Every response will include a finish_reason. The possible values for finish_reason are:
stop: API returned complete message, or a message terminated by one of the stop sequences provided via the stop parameter
length: Incomplete model output due to max_tokens parameter or token limit
function_call: The model decided to call a function
content_filter: Omitted content due to a flag from our content filters
null: API response still in progress or incomplete
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

No branches or pull requests

1 participant