Tag: gemini
All the articles with the tag "gemini".
-
AI Providers Reject minItems/maxItems — And Each SDK Handles It Differently
Gemini AND Anthropic both reject minItems/maxItems in JSON Schema structured output. The AI SDK's Google provider silently strips them; the Anthropic provider doesn't. The fix: never put array constraints in schemas sent to any provider.