feat(uagents): add OrcaRouter as a named LLM provider for ChatAgent - #936
Open
XiaoHuo888-hue wants to merge 1 commit into
Open
feat(uagents): add OrcaRouter as a named LLM provider for ChatAgent#936XiaoHuo888-hue wants to merge 1 commit into
XiaoHuo888-hue wants to merge 1 commit into
Conversation
Adds LLMConfig.orcarouter() mirroring the existing asi1() factory: reads ORCAROUTER_API_KEY, defaults to https://api.orcarouter.ai/v1 with the orcarouter/auto routed model, and is documented in the chat_agent README with unit tests. Signed-off-by: XiaoHuo888 <sjh00112233@outlook.com>
XiaoHuo888-hue
requested review from
Alejandro-Morales,
Archento,
jrriehl,
lrahmani and
qati
as code owners
August 19, 2026 14:21
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.
This registers OrcaRouter the same way the existing
asi1provider is wired, soLLMConfig.orcarouter()joinsLLMConfig.asi1()as a first-class factory and the model/config docs stay consistent. OrcaRouter is an OpenAI-compatible gateway: oneORCAROUTER_API_KEY(keys start withsk-orca-) unlocks 150+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, MiniMax and xAI behind a singlehttps://api.orcarouter.ai/v1endpoint. It also runs gateway-level, zero-trust security for AI agents on the same endpoint — screening every prompt/response and governing every tool call on a default-deny basis, with no application code changes.I'm an engineer on the OrcaRouter team.
Proposed Changes
python/src/uagents/experimental/chat_agent/llm.py— addLLMConfig.orcarouter()factory mirroringasi1(): readsORCAROUTER_API_KEY(required), defaults tohttps://api.orcarouter.ai/v1and modelorcarouter/auto, both overridable viaORCAROUTER_BASE_URLand themodelargument.python/src/uagents/experimental/chat_agent/README.md— documentLLMConfig.orcarouter()in the LLM Configuration example.python/tests/test_chat_agent_llm.py(new) — 3 unit tests covering the missing-key error, defaults, and base_url/model overrides.Linked Issues
None.
Types of changes
What type of change does this pull request make (put an
xin the boxes that apply)?Checklist
Put an
xin the boxes that apply:If applicable
python/scripts/generate_api_docs.py)Verification
uv run ruff checkanduv run ruff format --check: clean on all changed files.uv run pytest: 110 passed, 0 failed (includes the 3 new orcarouter tests).LLMConfig.orcarouter()+LLM.complete()returnsPONGviaorcarouter/auto.