Add Telnyx as a model provider - #7
Open
a692570 wants to merge 1 commit into
Open
Conversation
Telnyx Inference is an OpenAI-compatible Chat Completions endpoint (base https://api.telnyx.com/v2/ai) hosting open-source LLMs on Telnyx GPU infra. Adds a BUILTIN_PROVIDERS entry using the openai-chat adapter and a seed model snapshot (Kimi-K2.6, GLM-5.2, MiniMax-M3-MXFP8). Live model listing works via /v2/ai/models (OpenAI-compatible shape).
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.
What this changes
Adds Telnyx as a model provider, so OpenLive can talk to open-source LLMs hosted on Telnyx Inference GPU infrastructure.
Telnyx Inference is an OpenAI-compatible endpoint:
https://api.telnyx.com/v2/aiBearer $TELNYX_API_KEY/v2/ai/models(OpenAI{ object: "list", data: [...] }shape)/chat/completions)Because it speaks the universal
/chat/completionsdialect with Bearer auth, the existingopenai-chatadapter works unchanged. This PR is a singleBUILTIN_PROVIDERSentry plus a seedMODEL_SNAPSHOT— the same shape as the DeepSeek / Together / Fireworks / Perplexity entries added in v0.1.9.Seed models (verified current against the live
/v2/ai/modelsendpoint, 2026-07-11)moonshotai/Kimi-K2.6zai-org/GLM-5.2MiniMaxAI/MiniMax-M3-MXFP8These are seeds so the picker has a default before the live
/v2/ai/modelsfetch loads; the fetch overrides them the moment the key is set.catalogId: "telnyx"is set for forward-compat if Telnyx ever lands in the models.dev catalog (today it isn't, and the code path falls back to the live fetch / snapshot gracefully).How I tested it
pnpm typecheckpasses clean across all workspace packages./v2/ai/modelsendpoint returns OpenAI-compatible shape ({ object: "list", data: [...] }) with 21 models, so thefetchOpenAICompatpath inpackages/harness/src/models.tspicks it up without adapter changes.Checklist
pnpm typecheckpassesKnown limitations
The
visionbadge in the picker reads from models.devmodalities.inputmetadata or the OpenRouterarchitecture.input_modalitiesshape. Telnyx's/v2/ai/modelsreturns vision capability as a booleanis_vision_supportedfield instead, so the badge may not light up for Telnyx models even when they support images. The models still work for voice + camera; only the picker badge is affected. I kept this PR scoped to provider registration only — vendor-specific metadata parsing is a separate concern.