Skip to content

From Discord: Parsing Error with xAI Models in @effect/ai-openrouter Due to Unrecognized reasoning_details Format #5965

@effect-bot

Description

@effect-bot

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions