feat: add OrcaRouter as a named LLM provider - #1194
Open
JinhaoSong322 wants to merge 1 commit into
Open
Conversation
Signed-off-by: JinhaoSong322 <jinhao.song@myflashcloud.com>
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.
Summary
Add OrcaRouter as a named LLM provider option for AgentTeams, mirroring the existing
qwen/openai-compatnamed-provider wiring.OrcaRouter is a unified AI gateway that exposes an OpenAI-compatible API at
https://api.orcarouter.ai/v1. SettingAGENTTEAMS_LLM_PROVIDER=orcarouter(orcredentials.llmProvider=orcarouter) routes the Manager and Workers through a single OrcaRouter API key across models. 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.What changed
manager/scripts/init/setup-higress.sh— neworcarouterprovider branch: registers theapi.orcarouter.aiDNS service source and creates the Higress AI provider (type=openai,openaiCustomUrl=https://api.orcarouter.ai/v1), plus the defaultLLM_API_URL.manager/scripts/init/start-manager-agent.sh— same provider setup for the embedded/K8s bootstrap path.agentteams-controller/internal/initializer/initializer.go— neworcaroutercase that registers the service source and creates the gateway provider.agentteams-controller/cmd/agt/llm_preflight.go—orcarouterresolves tohttps://api.orcarouter.ai/v1by default in the LLM preflight probe.agentteams-controller/cmd/agt/llm_preflight_test.go— test asserting theorcarouterdefault base URL.install/agentteams-install.ps1— third provider option in the interactive installer (OrcaRouter), with default modelorcarouter/auto;New-OpenAICompatProvidernow accepts a provider name.helm/agentteams/values.yaml— updatedllmProvidercomment.README.md/README.zh-CN.md/README.ja-JP.md/install/README.md— OrcaRouter usage documentation.Verification
go build ./cmd/agt/... ./internal/initializer/...— cleango test ./cmd/agt/...— pass (including newTestResolveLLMPreflightConfigDefaultsOrcaRouter)gofmt -l— clean on edited Go filesbash -n— clean on both edited shell scriptshttps://api.orcarouter.ai/v1/chat/completionswithorcarouter/autoreturned HTTP 200Disclosure: I'm an engineer on the OrcaRouter team.