Skip to content

Conversation

@Haleshot
Copy link
Contributor

Addresses #364

Gemini doesn't support additionalProperties in JSON schemas, so we were recursively stripping it out after generation. Not great.

Added a supports_additional_properties bool to ToJsonSchemaOptions instead. Now we just don't include it in the first place for Gemini (both AI Studio and Vertex AI), while other providers (OpenAI, Ollama, Anthropic, Bedrock) still get it.

Removed the whole remove_additional_properties workaround function from gemini.rs. Cleaner this way.

Copy link
Member

@georgeh0 georgeh0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for the PR!

@georgeh0 georgeh0 merged commit 7bd1986 into cocoindex-io:main Nov 23, 2025
8 checks passed
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.

2 participants