-
Notifications
You must be signed in to change notification settings - Fork 40
Support structured outputs and tools in chats #57
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
base: master
Are you sure you want to change the base?
Conversation
7822ccc to
67b20c5
Compare
|
@rellfy Hey there! All the new features are tested and ready—would you mind taking a look when you get a chance? Thanks! |
|
Hi @cyborg42. Thanks for the PR! Sorry for the delay in getting to this. I believe the addition of I had a quick look at OpenAI's API and couldn't find the The addition of |
src/chat.rs
Outdated
| /// | ||
| /// [API Reference](https://platform.openai.com/docs/api-reference/chat/create#chat/create-function_call) | ||
| /// | ||
| /// Deprecated, use `tool_calls` instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can leverage Rust's #[deprecated] attribute.
src/chat.rs
Outdated
| /// | ||
| /// [API Reference](https://platform.openai.com/docs/api-reference/chat/create#chat/create-function_call) | ||
| /// | ||
| /// Deprecated, use `tool_calls` instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can leverage Rust's #[deprecated] attribute.
|
I came looking for the I'll give it a spin in the project I'm working on, and report back any findings. |
|
I suspect this PR still needs more work. I tried the branch, but |
|
@rellfy any update on this? |
| } | ||
| } | ||
|
|
||
| #[derive(Deserialize, Serialize, Clone, Debug, Eq, PartialEq)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #[derive(Deserialize, Serialize, Clone, Debug, Eq, PartialEq)] | |
| #[derive(Deserialize, Serialize, Clone, Debug, Eq, PartialEq)] | |
| #[serde(rename_all = "lowercase")] |
This pull request includes no breaking change.
Support structured outputs and tools in chats.