mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-22 19:47:28 +00:00
Adds OrcaRouter (https://orcarouter.ai) as a dedicated BYOK provider card in Agents > Models. OrcaRouter is an OpenAI-compatible LLM gateway that routes each request to the cheapest or fastest provider across many upstream model providers. Follows the existing alias pattern for OpenAI-compatible gateways (ModelArk, grok, llama.cpp): provider id `orcarouter` is aliased to `openai-compatible-model` on the backend, so no CAMEL changes are required. - backend/app/model/model_platform.py: PLATFORM_ALIAS_MAPPING entry - src/lib/llm.ts: INIT_PROVODERS entry with default base URL, positioned at the end of the list to preserve existing ordering - src/assets/model/orcarouter.svg: official OrcaRouter brand logo - src/pages/Agents/Models.tsx: import + register icon - docs/core/models/byok.md: add row to Supported Providers table |
||
|---|---|---|
| .. | ||
| .vscode | ||
| app | ||
| benchmark | ||
| lang | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .python-version | ||
| babel.cfg | ||
| cli.py | ||
| main.py | ||
| messages.pot | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
uv run uvicorn main:api --port 5001
i18n operation process: https://github.com/Anbarryprojects/fastapi-babel
pybabel extract -F babel.cfg -o messages.pot . --ignore-pot-creation-date # Extract multilingual strings from code to messages.pot file
pybabel init -i messages.pot -d lang -l zh_CN # Generate Chinese language pack, can only be generated initially, subsequent execution will cause overwrite
pybabel compile -d lang -l zh_CN # Compile language pack
pybabel update -i messages.pot -d lang
# -i messages.pot: Specify the input file as the generated .pot file
# -d translations: Specify the translation directory, which typically contains .po files for each language
# -l zh: Specify the language code
# regular search
\berror\b(?!\])