Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(google): strip examples/const/readOnly/writeOnly from Gemini schema sanitization

Tushar49482ee118d5a3
diff --git a/server/src/providers/google.ts b/server/src/providers/google.ts
index 434925d4..b8e4dd81 100644
--- a/server/src/providers/google.ts
+++ b/server/src/providers/google.ts
@@ -80,6 +80,7 @@ const GEMINI_UNSUPPORTED_SCHEMA_KEYS = new Set([
'contentEncoding', 'contentMediaType', 'contentSchema',
'dependentRequired', 'dependentSchemas',
'additionalProperties',
+ 'examples', 'const', 'readOnly', 'writeOnly',
]);
export function sanitizeForGemini(schema: unknown): unknown {