docs: add LLMTR provider - #42867
Open
knowhycodata wants to merge 1 commit into
Open
Conversation
knowhycodata
force-pushed
the
llmtr-docs
branch
from
August 16, 2026 08:00
a129403 to
84606b6
Compare
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.
Issue for this PR
Closes #42866
Type of change
What does this PR do?
Adds the missing LLMTR section to the provider directory in
providers.mdx. One file, docs only.LLMTR already works in opencode — it is in models.dev and live in the catalog mirror (
llmtr, npm@ai-sdk/openai-compatible, envLLMTR_API_KEY), so it resolves through the generic openai-compatible path with no runtime code. The only thing missing was the docs entry, so this is purely that.I put it after LLM Gateway and before Poolside, and followed the same four-step connect/models shape the neighbouring entries use. The config snippet uses the existing "add a model to an existing provider" pattern from the OpenRouter and LLM Gateway sections rather than any new syntax, because the models.dev snapshot only carries the Turkey-hosted
llmtr/*ids — anything else from the gateway has to be named in config.How did you verify your code works?
Docs build, on this branch:
bun run --cwd packages/web build→[build] Complete!, exit 0. The section renders at/docs/providerswith anchorid="llmtr".prettier --check packages/web/src/content/docs/providers.mdx→All matched files use Prettier code style!bun run lint(oxlint) reports one error and 4855 warnings, but they are all pre-existing ondevand in.ts/.tsxfiles; oxlint does not process.mdx.Provider behaviour, on the released
opencode-ai@1.18.18withLLMTR_API_KEYset:opencode modelslists thellmtr/*catalog models.opencode run --model llmtr/gemma-4 "Reply with exactly: OK"→OK.opencode.json,opencode modelsgainsllmtr/anthropic/claude-opus-4.8andllmtr/openai/gpt-5.4, andopencode run --model llmtr/anthropic/claude-opus-4.8returns a real response. Both ids were also checked directly againstPOST /v1/chat/completions(HTTP 200).I deliberately did not name
llmtr/sincapanywhere: it is retired and returns HTTP 410. It is still in the models.dev snapshot; a separate PR fixes that catalog drift.Screenshots / recordings
Not a UI change — content added to an existing docs page.
Checklist
Context: this was previously #31315 / #31316. The PR was closed by the automated PR-cleanup bot and the issue by the 60-day stale bot, not on technical merit, and neither can be reopened, so this is a refile against current
dev.