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

Deprecate functions and add tools #54

Merged
merged 4 commits into from
Dec 28, 2023
Merged

Conversation

sharifhsn
Copy link
Contributor

Fixes #47

This PR deprecates the fields functions and function_call, which have been declared deprecated in the official OpenAI docs.

It also implements the replacement fields tools and tool_choice.

Notes:

  • Upon examining the Function struct in chat_completion, I noticed that the parameters field is required, even though the documentation mentions it's optional. This should be changed in the next major version.

@dongri dongri merged commit cab9136 into dongri:main Dec 28, 2023
1 check failed
@sharifhsn sharifhsn deleted the toolchoice branch December 29, 2023 12:25
ra0x3 added a commit to ra0x3/openai-rst that referenced this pull request May 3, 2024
* enhancement: add docker support

* fe updates
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.

Deprecated functions field of chat completion API.
2 participants