-
Notifications
You must be signed in to change notification settings - Fork 418
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
Gemini fails to decode #283
Comments
Also, I'm not sure if the goal of the library is to be agnostic across many different models. If not, happy to close this! |
@gtokman current decision is to support other providers without a harm to the main one - OpenAI. In this case (and there are other similar cases) making fields optional would somewhat drift the Swift structs away from official API Reference of OpenAI, because the reference would point out that a field is non-optional, but it would be optional in our SDK, which may be strange. But let's not close this, maybe we'll make a workaround for such a case without downgrading the experience of working with OpenAI |
@nezhyborets thanks for the context! What about in this case where the
|
@gtokman interesting! Sometime ago someone asked for the same field for DeepSeek. But it has |
@nezhyborets also noticed the naming descrepencys across different APIs. The node OpenAI client supports all of these from my testing:
|
@gtokman you could use |
@nezhyborets no I meant these providers all are OpenClient compatible. Although some of them ommit certain fields like the Gemini example above. |
Describe the bug
When using Gemini flash models the stream is failing to decode. Looks like Gemini ommits a few fields from the response. Should these fields be optional?
The text was updated successfully, but these errors were encountered: