Skip to content

Add TeamoRouter as an OpenAI-compatible provider profile #327

Open

Description

@2867297362mjb-sketch

Following the CONTRIBUTING discuss-first guidance for new providers, opening this before writing any code.

Disclosure: I work at TeamoRouter.

What

TeamoRouter is an AI API gateway that exposes an OpenAI-compatible surface at https://api.teamorouter.com/v1, routing to many upstream model families behind a single key (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, ...). Models are addressed by plain ids, e.g. gpt-5.6-sol or claude-fable-5-1.

It is pay-as-you-go with no subscription, and accepts USDT / USDC as well as cards. That is close to the ppq profile's audience.

Today

TeamoRouter already works through the generic openai_compatible provider (base URL + key), so this doesn't unblock anything. It's about first-class support: a named provider with a preset base URL and model discovery, the same treatment deepseek / novita / ppq get.

Proposed approach

A BUILTIN_PROFILES entry in src/esperanto/providers/llm/profiles.py, with no new provider class:

"teamorouter": OpenAICompatibleProfile(
    name="teamorouter",
    base_url="https://api.teamorouter.com/v1",
    api_key_env="TEAMOROUTER_API_KEY",
    base_url_env="TEAMOROUTER_BASE_URL",
    capabilities={"language"},
    default_models={"language": "gpt-5.6-sol"},
    display_name="TeamoRouter",
    owned_by="TeamoRouter",
),
  • Capabilities {"language"} only for now. I would only add embedding etc. after verifying them live.
  • GET /v1/models is OpenAI-style and requires the key: it returns 401 without one, which I checked today.
  • In the PR I'd mirror the existing profile tests for novita / ppq, and paste live output for /chat/completions (including tool calling) and /models.

If a profile isn't the right shape, or TeamoRouter doesn't clear the bar for a built-in profile, that's fine. Let me know either way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions