Summary
User reports an issue when using xAI models (e.g., x-ai/grok-4-fast) with the @effect/ai-openrouter library. The problem arises because xAI returns streaming responses containing reasoning_details with the format 'xai-responses-v1', which is not currently included in the allowed values of the schema, causing parsing failures. A minimal reproducible example was shared. Another user suggests that updating the generated schemas to include this new format might resolve the problem. The issue appears to stem from schema validation and may require schema updates or support for the new reasoning_details format from xAI.
Discord thread
https://discord.com/channels/795981131316985866/1458599962077171744