-
Notifications
You must be signed in to change notification settings - Fork 197
feat: Provides support for OpenAI compatible APIs that support json_o… #236
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: main
Are you sure you want to change the base?
Conversation
|
How does this exactly differ from using OpenAI's library? You can already change the base url |
|
Right, this would use Using this approach would need much better error handling than what's implemented now (not a bad thing per se) and result in retries, which would mean it costs more to run |
|
`
(node:21436) [DEP0040] DeprecationWarning: The ZodError: [ Node.js v22.5.1 |
|
I encountered an error when trying to use @largomst's solution with the DeepSeek API. The error occurs because the API response doesn't include the required "newName" field, causing the Zod validation to fail. Here's the error I got when running the command: The key error message is: claude implemented several fixes to handle this issue:
|
|
I get UnprocessableEntityError: 422 Failed to deserialize the JSON body into the target type: response_format: response_format.type How to fix this problem? @largomst @jehna @MohammedInTheCloud @ocxo @0xdevalias |
Introduce @instructor-ai/instructor to add support for OpenAI-compatible APIs that support json_object.