feat: add LLMTR as an OpenAI-compatible gateway provider
Problem
LLMTR (https://llmtr.com) is an OpenAI-compatible gateway at https://llmtr.com/v1. It serves other vendors' models under vendor/model ids, a few under its own llmtr/<name>, and a handful are free (qwen/qwen3.8-27b-free). Raven has no entry for it, so users have to set up a custom endpoint, and two things go wrong:
- an id like
llmtr/qwen3-8-27bloses its leading segment unless the prefix is kept - Raven infers the responses protocol for
qwen,deepseek,gpt,kimiandminimaxids, and many LLMTR models are only served on/v1/chat/completions. For exampleqwen/qwen3.8-27b-freeanswers/v1/responseswith a 400.
Disclosure: I maintain LLMTR.
Proposal
A ProviderSpec in the resale gateway block, the same shape as Opper (#869):
via_driver="openai",is_gateway=True,detect_by_base_keyword="llmtr.com", default basehttps://llmtr.com/v1,strip_model_prefix=False, no default model, no shortlistnative_api_basesdeclaring chat only, so an inferred protocol steps aside to chat, the same path Moonshot and Groq already take- config section, onboarding row, provider mark, and the pinned counts and tables in tests
Alternatives considered
A custom OpenAI-compatible endpoint. It works for chat-only models if the protocol is set to chat by hand and the full id is typed, but users don't find it in the picker and the defaults route Qwen ids to /v1/responses.
Area
Providers
Additional context
Model catalog (no key needed): GET https://llmtr.com/v1/models. Each row lists supported_operations. I have a PR ready and will link it here.