feat: add OrcaRouter (orcarouter/) as a first-class provider - #1
Open
xilema2 wants to merge 1 commit into
Open
Conversation
OrcaRouter (https://www.orcarouter.ai) is an OpenAI-compatible LLM meta-router. This adds it as a first-class provider in aider: - New OrcaRouterModelManager that fetches the public /api/pricing catalog (no auth) and exposes per-model context_length / pricing in litellm get_model_info shape. Pricing uses OrcaRouter's published quota formula (model_ratio * 2 USD/1M for input, * completion_ratio for output). - ModelInfoManager delegates to it for orcarouter/-prefixed models when litellm has no built-in info. - Model.send_completion auto-routes orcarouter/<vendor>/<model> to api.orcarouter.ai/v1 via litellm's OpenAI-compatible client, using ORCAROUTER_API_KEY from the environment. HTTP-Referer / X-Title attribution headers are injected so OrcaRouter's console can credit the traffic to aider. - ORCAROUTER_API_KEY added to fast_validate_environment keymap. - "orcarouter-auto" alias added for the orcarouter/orcarouter/auto adaptive router. - Docs page at aider/website/docs/llms/orcarouter.md. - Unit tests in tests/basic/test_orcarouter.py mirroring the existing OpenRouter test pattern. I'm an engineer on the OrcaRouter team.
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.
OrcaRouter (https://www.orcarouter.ai) is an OpenAI-compatible LLM meta-router. This adds it as a first-class provider in aider:
I'm an engineer on the OrcaRouter team.