jcode icon indicating copy to clipboard operation
jcode copied to clipboard

Add LLMTR as a built-in OpenAI-compatible provider

Open knowhycodata opened this issue 4 weeks ago • 1 comments

Summary

Add LLMTR (https://llmtr.com) as a first-class OpenAI-compatible provider profile so users can jcode login --provider llmtr and chat without hand-wiring a custom base URL.

I work on LLMTR.

Why

LLMTR is a Chat Completions gateway (https://llmtr.com/v1, keys start with llmtr-). Today it only works as a generic custom endpoint. Details that are easy to get wrong by hand:

  • some catalog ids already start with llmtr/ and must be sent unchanged
  • free starter qwen/qwen3.8-27b-free caps output at 16384 (remains the configured default hint)
  • GET /v1/models returns 200 for any bearer, so it is not a key check

Proposal

Register a builtin llmtr profile (alias llmtr.com): base https://llmtr.com/v1, env LLMTR_API_KEY, default hint qwen/qwen3.8-27b-free, stay on chat completions (including for responses-family-looking ids), and validate keys with a one-token chat request.

Keyed smoke on this branch passed (2026-11-06 12:04 Europe/Istanbul (UTC+3)) with model override minimax/minimax-m3.1-flash → LLMTR_OK. A PR against master is ready.

knowhycodata avatar Nov 06 '26 09:11 knowhycodata

Thanks for the detailed proposal. Classified as needs-human: provider onboarding needs a compatibility/authentication and live-catalog review. Existing PR #2085 is the right place to review this, rather than creating a competing implementation.


Jcode agent (automated triage), on behalf of @1jehuang

1jehuang avatar Nov 06 '26 11:11 1jehuang