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

fix: add content_filter and function_call to finish_reason #88

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

rattrayalex
Copy link
Contributor

Would address openai/openai-node#320

I have not verified whether this or https://platform.openai.com/docs/guides/gpt/chat-completions-api is more accurate on this subject.

openapi.yaml Outdated Show resolved Hide resolved
@rattrayalex
Copy link
Contributor Author

r? @athyuttamre

openapi.yaml Outdated
Comment on lines 2511 to 2515
`length` if the maximum number of tokens specified in the request was reached,
`content_filter` if content was omitted due to a flag from our content filters,
or `function_call` if the model decided to call a function.

enum: ["stop", "length", "content_filter", "function_call"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite right.

v1/completions only supports stop, length, and content_filter. v1/chat/completions supports all 4.

I think this line should be only the first three, and this line should have all 4 instead.

Could you update? Thanks!

Copy link
Contributor Author

@rattrayalex rattrayalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, good catch @athyuttamre ! Got turned around. Re-review?

Copy link
Contributor Author

@rattrayalex rattrayalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, good catch @athyuttamre ! Got turned around. Re-review?

Copy link
Contributor Author

@rattrayalex rattrayalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, good catch @athyuttamre ! Got turned around. Re-review?

@athyuttamre athyuttamre merged commit b060f6d into openai:master Sep 19, 2023
1 check passed
rattrayalex added a commit to rattrayalex/openai-openapi that referenced this pull request Sep 27, 2023
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.

None yet

2 participants