feat: add OrcaRouter as a named VLMEvalKit API provider - #332
Open
nissrin2020ali-ux wants to merge 1 commit into
Open
feat: add OrcaRouter as a named VLMEvalKit API provider#332nissrin2020ali-ux wants to merge 1 commit into
nissrin2020ali-ux wants to merge 1 commit into
Conversation
Add a first-class OrcaRouter API wrapper mirroring the existing TogetherAI integration, plus four preset models in the api_models registry and the ORCAROUTER_API_KEY entry in the Quickstart env list. Signed-off-by: nissrin2020ali-ux <nissrin2020ali-ux@users.noreply.github.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.
Motivation
VLMEvalKit evaluates large vision-language models against a large registry of named API providers — Together AI, SiliconFlow, MiniMax, and others each have a first-class wrapper in
vlmeval/api/plus preset entries invlmeval/config.py. When benchmarking with an external model gateway, users currently have no way to pick OrcaRouter without treating it as an anonymous custom--base-url. This PR adds OrcaRouter as a first-class provider in the same style as the existing Together AI integration, so Cosmos Reasoner benchmarks can run against OrcaRouter's model namespace directly.OrcaRouter is an OpenAI-compatible AI gateway built for both models and agents. Like OpenRouter, it exposes a provider/model namespace across many models — but it also combines adaptive routing, automatic failover, zero-markup inference, observability, guardrails, and agent-tool governance behind the same endpoint. Adding
orcarouteras a first-class provider means this project's users can use that stack directly, without treating OrcaRouter as an anonymous custom base URL.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.
Changes
vlmeval/api/orcarouter.py— newOrcaRouterAPIwrapper, modeled directly onvlmeval/api/together.py: OpenAI-compatible chat completions withimage_url(base64 or URL) support,ORCAROUTER_API_KEYenv key resolution, retries, and a configurableapi_basedefaulting tohttps://api.orcarouter.ai/v1/chat/completions.vlmeval/api/__init__.py— import and exportOrcaRouterAPI.vlmeval/config.py— four presetapi_modelsentries:OrcaRouter_Gemini-3.1-Flash-Lite,OrcaRouter_Gemini-3.5-Flash,OrcaRouter_Claude-Sonnet-5, andOrcaRouter_DeepSeek-V4-Flash-Vision.docs/en/Quickstart.md— addORCAROUTER_API_KEYto the documented.envAPI-key list.Verification
python -m py_compileandflake8 --max-line-length=99pass on the new files (config.py is pre-commit-excluded).OrcaRouterAPIclass against the livehttps://api.orcarouter.ai/v1endpoint succeeded for all four preset models (google/gemini-3.1-flash-lite,google/gemini-3.5-flash,anthropic/claude-sonnet-5,deepseek/deepseek-v4-flash-vision-exp), each returningret_code=0with a valid completion.Discord: discord.gg/YEubt8enRA · X: https://x.com/OrcaRouter
I'm an engineer on the OrcaRouter team.