Skip to content

feat: add TeamoRouter preset to LLM specs - #395

Merged
msoedov merged 1 commit into
msoedov:mainfrom
2867297362mjb-sketch:feat/teamorouter-preset
Nov 25, 2026
Merged

msoedov merged 1 commit into
msoedov:mainfrom
2867297362mjb-sketch:feat/teamorouter-preset

Conversation

@2867297362mjb-sketch

Copy link
Copy Markdown

Summary

Adds a TeamoRouter preset to the LLM specs, in the same shape as the Requesty (#384) and AbliteratedLLM (#387) presets. TeamoRouter is an OpenAI-compatible gateway for GLM, Kimi, DeepSeek, Qwen, Claude, GPT and Gemini.

  • agentic_security/routes/_specs.py: a POST https://api.teamorouter.com/v1/chat/completions spec (Bearer $TEAMOROUTER_API_KEY, model deepseek-v4-flash) appended to _SPECS, and the matching {"name": "TeamoRouter", ...} entry appended to LLM_CONFIGS, so the zip stays aligned.
  • agentic_security/static/base.js: the same spec and name appended to the UI lists.
  • tests/unit/test_teamorouter_spec.py: same two tests as test_requesty_spec.py (spec parses to a chat-completions POST with the right URL/auth/model; probe() sends the prompt as a user message).

Disclosure: I work at TeamoRouter.

Testing

  • I couldn't run pytest locally: the project needs Python >= 3.15 and the only 3.15 I have is 3.15.0b1, where numpy/pyarrow segfault on import. I left the run to CI and checked statically instead:
    • _SPECS and LLM_CONFIGS are both 20 long after the change, and the last three pairs are Requesty / AbliteratedLLM / TeamoRouter with their own URLs (parsed with ast)
    • base.js spec and name lists each grow by exactly one entry (same counts relative to main), and node --check passes
    • py_compile passes on the changed Python files
  • Live: the exact request in the spec (POST /v1/chat/completions, deepseek-v4-flash, one user message) returns a normal completion from api.teamorouter.com.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@msoedov msoedov left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for the patch!

@msoedov
msoedov merged commit 5c24fac into msoedov:main Nov 25, 2026
@knowhycodata knowhycodata mentioned this pull request Nov 27, 2026
3 of 4 tasks
@askmorse askmorse mentioned this pull request Dec 1, 2026
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants