Skip to content

Fix OpenRouter AI provider reasoning detail format schema - #5966

Closed
IMax153 wants to merge 1 commit into
mainfrom
fix/openrouter-reasoning-detail-format
Closed

IMax153 wants to merge 1 commit into
mainfrom
fix/openrouter-reasoning-detail-format

Conversation

@IMax153

@IMax153 IMax153 commented Jan 8, 2026

Copy link
Copy Markdown
Member

@changeset-bot

changeset-bot Bot commented Jan 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e2f8ae6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/ai-openrouter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@timm-stelzer-e-farm

Copy link
Copy Markdown

I have a similar issue to the source bug. This PR isn't sufficient to fix it on my end. ReasoningDetailEncryptedFormat apparently also needs to be updated?

Here's part of the patch that fixed it for me. Note: In my actual patch, I also updated the dist files, obviously, but that's not relevant for this PR.

diff --git a/src/Generated.ts b/src/Generated.ts
index db3f7f37321b4ace55f3d8328f2583e0ebbaeead..260b76bd377b352e5e21976a17c9a9829125fc9f 100644
--- a/src/Generated.ts
+++ b/src/Generated.ts
@@ -16,7 +16,7 @@ export class CacheControlEphemeral extends S.Class<CacheControlEphemeral>("Cache
 
 export class ReasoningDetailSummaryType extends S.Literal("reasoning.summary") {}
 
-export class ReasoningDetailSummaryFormat extends S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1") {}
+export class ReasoningDetailSummaryFormat extends S.Literal("unknown", "openai-responses-v1", "xai-responses-v1", "anthropic-claude-v1", "google-gemini-v1") {}
 
 /**
  * Reasoning summary detail
@@ -34,9 +34,7 @@ export class ReasoningDetailSummary extends S.Class<ReasoningDetailSummary>("Rea
 
 export class ReasoningDetailEncryptedType extends S.Literal("reasoning.encrypted") {}
 
-export class ReasoningDetailEncryptedFormat
-  extends S.Literal("unknown", "openai-responses-v1", "anthropic-claude-v1")
-{}
+export class ReasoningDetailEncryptedFormat extends S.Literal("unknown", "openai-responses-v1", "xai-responses-v1", "anthropic-claude-v1", "google-gemini-v1") {}
 
 /**
  * Encrypted reasoning detail

@magoz

magoz commented Feb 1, 2026 •

Copy link
Copy Markdown
Contributor

@IMax153 IMax153 mentioned this pull request Feb 4, 2026
1 of 5 tasks
@IMax153

IMax153 commented Feb 4, 2026

Copy link
Copy Markdown
Member Author

Superceded by #6026

@IMax153 IMax153 closed this Feb 4, 2026
@IMax153
IMax153 deleted the fix/openrouter-reasoning-detail-format branch February 4, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants