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

Updates for function calling #53

Merged
merged 3 commits into from
Jun 28, 2023
Merged

Conversation

athyuttamre
Copy link
Collaborator

Updates a few things:

  • Adds gpt-3.5-turbo-0301, gpt-4-0314, gpt-4-32k-0314 as suggested enums for models
  • Marks the messages.content param as required but nullable
  • Marks the messages.function_call.{name,arguments} params as required
  • Adds documentation about how to specify empty functions and how to specify content: null for assistant messages with function call but no content.

@athyuttamre athyuttamre requested a review from schnerd June 28, 2023 21:23
openapi.yaml Outdated
@@ -1978,7 +1982,7 @@ components:
oneOf:
- type: string
- type: string
enum: ["gpt-4","gpt-4-0613","gpt-4-32k","gpt-4-32k-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k","gpt-3.5-turbo-0613","gpt-3.5-turbo-16k-0613"]
enum: enum: ["gpt-4","gpt-4-0314","gpt-4-0613","gpt-4-32k","gpt-4-32k-0314","gpt-4-32k-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k","gpt-3.5-turbo-0301","gpt-3.5-turbo-0613","gpt-3.5-turbo-16k-0613"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

extra enum: here

@schnerd
Copy link
Collaborator

schnerd commented Jun 28, 2023

The CI validator did it's job here! Unfortunately the error message isn't super helpful :/

@athyuttamre athyuttamre merged commit 7e16a4f into master Jun 28, 2023
1 check passed
@athyuttamre athyuttamre deleted the dev/atty/functions-updates branch June 28, 2023 21:30
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