Fix OpenRouter AI provider reasoning detail format schema#5966
Closed
Fix OpenRouter AI provider reasoning detail format schema#5966
Conversation
🦋 Changeset detectedLatest commit: e2f8ae6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
I have a similar issue to the source bug. This PR isn't sufficient to fix it on my end. Here's part of the patch that fixed it for me. Note: In my actual patch, I also updated the 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 |
|
I confirm @timm-stelzer-e-farm 's changes work for me: https://github.com/magoz/effect/tree/fix/openrouter-reasoning-formats |
5 tasks
Member
Author
|
Superceded by #6026 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
Description
Related