Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(gemini): remove "optional" field from schema to fix Gemini API rejection (#244)

diegosouzapwa1dc2270a263
diff --git a/README.md b/README.md
index 7e5b3f7961..9022c12d5a 100644
--- a/README.md
+++ b/README.md
@@ -1693,6 +1693,8 @@ gh release create v2.0.0 --title "v2.0.0" --generate-notes
</picture>
</a>
+> 📈 **[View live star history on star-history.com](https://star-history.com/#diegosouzapw/OmniRoute&Date)** — The embedded chart may be cached. Click the link for real-time data.
+
---
## 🙏 Acknowledgments
diff --git a/open-sse/translator/helpers/geminiHelper.ts b/open-sse/translator/helpers/geminiHelper.ts
index af00d0aa13..8fe75e4688 100644
--- a/open-sse/translator/helpers/geminiHelper.ts
+++ b/open-sse/translator/helpers/geminiHelper.ts
@@ -41,6 +41,8 @@ export const UNSUPPORTED_SCHEMA_CONSTRAINTS = [
"else",
"contentMediaType",
"contentEncoding",
+ // Non-standard schema fields (not recognized by Gemini API)
+ "optional",
// UI/Styling properties (from Cursor tools - NOT JSON Schema standard)
"cornerRadius",
"fillColor",