Repository navigation
feat(llmtr): add new provider - #757
Open
knowhycodata wants to merge 1 commit into
Open
knowhycodata wants to merge 1 commit into
knowhycodata wants to merge 1 commit into
Conversation
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.
Adds LLMTR, an OpenAI-compatible gateway at
https://llmtr.com/v1. One key reaches models hosted in Turkey (llmtr/...) and global models from Anthropic, Google, OpenAI, DeepSeek, Mistral, Qwen and others.Changes
cmd/llmtr/main.go: generator that reads the publicGET https://llmtr.com/v1/models(no key needed, OpenRouter-style schema) and writesinternal/providers/configs/llmtr.json./v1/chat/completions, supporttools, take and return text, and have at least 20K context. Responses-only models are skipped.input_cache_read→cache_hit). Nothing is estimated or converted from another currency.reasoning.mandatory→always; areasoningparameter →toggleable, with effort levels taken fromsupported_effortswhen the model acceptsreasoning_effort; otherwisenever.input_modalities.default_max_tokensis half ofmax_completion_tokens, the same as the OpenRouter generator.internal/providers/configs/llmtr.json: generated output, formatted withgo run ./cmd/format.pkg/catwalk/provider.go:InferenceProviderLLMTRandKnownProviders()entry.internal/providers/providers.go: embed and registry entry, in alphabetical order..github/workflows/update.yml: LLMTR step, so the config stays current.Defaults are
anthropic/claude-sonnet-4.6(large) andanthropic/claude-haiku-4.5(small), the same as OpenRouter.Testing
go test ./...passes, includingTestValidDefaultModelsandTestKnownProvidersMatchesRegistry.go vetandgofumpt -lare clean on the changed packages.llmtr.comdirectly, so I generatedllmtr.jsonby running the same command against a saved copy of the public/v1/modelsresponse from today. That copy had 73 models that pass the filter. The scheduled update job will regenerate the file from the live endpoint, so the list may grow on the first run.No live call to LLMTR was made for this change.