docs: note OpenRouter base URL works with any OpenAI-compatible gateway#2
Open
Thibaultjaigu wants to merge 1 commit into
Open
Conversation
The OpenRouter provider already accepts a custom OPENROUTER_BASE_URL, so it works with any OpenAI-compatible gateway. Document Requesty (https://requesty.ai) as an example: set OPENROUTER_BASE_URL=https://router.requesty.ai/v1 and use a Requesty API key. Bilingual (zh/en) note added next to OPENROUTER_BASE_URL in .env.example. No code changes.
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.
What
The OpenRouter provider already accepts a custom
OPENROUTER_BASE_URL, so it works with any OpenAI-compatible gateway — not just openrouter.ai. This adds a short bilingual (中文/English) note next toOPENROUTER_BASE_URLin.env.exampledocumenting that, using Requesty as a concrete example (OPENROUTER_BASE_URL=https://router.requesty.ai/v1+ a Requesty key).No code changes — purely a docs/example clarification.
Why not a separate provider?
A full
requestyclient would duplicate the existing 489-lineOpenRouterClient(and its Google-AI format conversion) for no behavioral gain, since the OpenRouter client is already base-URL-configurable. Documenting the existing knob is the right-sized change.Tested
I verified the claim end-to-end: built the project (
npm run build) and ran the compiledOpenRouterClientwithbaseUrl='https://router.requesty.ai/v1'against the live endpoint — it returns HTTP 200 with a correct unified response (gpt-4o-miniviaopenai/gpt-4o-mini).Disclosure
I work at Requesty. This is a one-paragraph docs note about an existing config option. Happy to reword, drop the Requesty example, or close if it's not wanted.