Support structured outputs and tools in chats#57
Support structured outputs and tools in chats#57cyborg42 wants to merge 10 commits intorellfy:masterfrom
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.
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.
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.
| #[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.