Repository navigation
feat(openrouter): support native Anthropic Messages - #41
Closed
gptphew[bot] wants to merge 1 commit into
Closed
gptphew[bot] wants to merge 1 commit into
gptphew[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Arnav Surve <arnav@anything.com>
gptphew
Bot
force-pushed
the
feat/openrouter-messages
branch
from
September 28, 2026 19:16
26723cb to
2ab8f67
Compare
This branch had an error being deployed
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.
Problem
The gateway supports OpenRouter chat completions but cannot route Anthropic Messages to OpenRouter. This prevents Messages-based transient-error failover from using OpenRouter as a target.
Change
/api/v1/messagesendpoint with bearer auth.providerprivacy preferences. Exclude Anthropic-onlycontainerandmcp_serversfields that the OpenRouter request schema does not accept.Verification
node --import tsx --test src/providers/openrouter/messages.offline.ts: 6 passed.npx prettier --check src/providers/openrouter/{api.ts,index.ts,messages.ts,messages.offline.ts}: passed.npx tsc --noEmit --pretty false: blocked by existing top-level-await CommonJS errors insrc/utils/env.ts, reproduced on unmodified base.No paid live inference or production traffic was started. Live OpenRouter model compatibility and failover behavior remain unverified pending authorized integration tests. This PR does not implement or alter gateway retry policy; it adds the OpenRouter Messages target.