Tag: ai-sdk
All the articles with the tag "ai-sdk".
-
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.