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 uniqueItems + composition keys (not/allOf/oneOf/prefixItems/contains/propertyNames/multipleOf/dependencies/deprecated)
Tushar4932ae8ba2e37d
diff --git a/server/src/providers/google.ts b/server/src/providers/google.tsindex b8e4dd81..c55dc732 100644--- a/server/src/providers/google.ts+++ b/server/src/providers/google.ts@@ -78,9 +78,16 @@ const GEMINI_UNSUPPORTED_SCHEMA_KEYS = new Set(['patternProperties', 'unevaluatedProperties', 'unevaluatedItems','if', 'then', 'else','contentEncoding', 'contentMediaType', 'contentSchema',- 'dependentRequired', 'dependentSchemas',+ 'dependentRequired', 'dependentSchemas', 'dependencies','additionalProperties','examples', 'const', 'readOnly', 'writeOnly',+ 'uniqueItems',+ 'not', 'allOf', 'oneOf',+ 'prefixItems',+ 'contains', 'minContains', 'maxContains',+ 'propertyNames',+ 'multipleOf',+ 'deprecated',]);export function sanitizeForGemini(schema: unknown): unknown {