Repository navigation
feat: update LLM Gateway to 204 models #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3549abe
feat: add LLM Gateway provider with 153 models
steebchen 24e575a
refactor: flatten model structure to models/ directory
steebchen 09b5dd4
refactor: remove scripts/ dir, link to repo script
steebchen e28d4e3
chore: trigger CI
steebchen b22ff13
fix: add required output limit to all models
steebchen e8a6793
fix: use valid models.dev family enum values
steebchen 6b9b340
fix: map llmgateway family to auto
steebchen 9226928
fix: use correct family for gemma and gpt-oss models
steebchen c2f0bd0
feat: update LLM Gateway models to 204
smakosh d77bee4
fix: correct reasoning, vision, tools flags
smakosh c2ba40d
fix: logo format, remove README, minimax weights
smakosh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| # LLM Gateway Provider | ||
|
|
||
| This provider enables access to 150+ AI models through [LLM Gateway](https://llmgateway.io), an OpenAI-compatible API gateway that provides unified access to 40+ LLM providers. | ||
|
|
||
| ## Directory Structure | ||
|
|
||
| - **models/**: TOML configuration files for all supported models | ||
| - **provider.toml**: Provider configuration | ||
| - **logo.svg**: Provider logo | ||
|
|
||
| ## Regenerating Models | ||
|
|
||
| Model configurations are generated from the [LLM Gateway repository](https://github.com/theopenco/llmgateway): | ||
|
|
||
| ```bash | ||
| npx tsx scripts/export-models-dev.ts | ||
| ``` | ||
|
|
||
| ## How It Works | ||
|
|
||
| LLM Gateway acts as a unified proxy for multiple AI providers. You can access any supported model through a single API endpoint using your LLM Gateway API key. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| ```bash | ||
| export LLMGATEWAY_API_KEY="your-api-key" | ||
| ``` | ||
|
|
||
| ## Supported Providers | ||
|
|
||
| - OpenAI (GPT-3.5, GPT-4, GPT-4o, GPT-5, o1, o3, o4-mini) | ||
| - Anthropic (Claude 3, 3.5, 3.7, 4, 4.5) | ||
| - Google (Gemini 1.5, 2.0, 2.5, 3, Gemma) | ||
| - Meta (Llama 3.1, 3.3, 4) | ||
| - xAI (Grok 2, 3, 4) | ||
| - DeepSeek (V3, R1) | ||
| - Alibaba (Qwen Max, Plus, Flash, VL, Coder) | ||
| - Mistral (Large, Pixtral, Mixtral) | ||
| - ZAI (GLM 4.5, 4.6, 4.7) | ||
| - ByteDance (Seed, Seedream) | ||
| - Moonshot (Kimi K2) | ||
| - Perplexity (Sonar) | ||
| - And many more... | ||
|
|
||
| ## Usage with AI SDK | ||
|
|
||
| ```typescript | ||
| import { createOpenAICompatible } from "@ai-sdk/openai-compatible"; | ||
|
|
||
| const llmgateway = createOpenAICompatible({ | ||
| baseURL: "https://api.llmgateway.io/v1", | ||
| apiKey: process.env.LLMGATEWAY_API_KEY, | ||
| }); | ||
|
|
||
| const result = await generateText({ | ||
| model: llmgateway("claude-sonnet-4-5"), | ||
| prompt: "Hello!", | ||
| }); | ||
| ``` | ||
|
|
||
| ## Links | ||
|
|
||
| - [Documentation](https://llmgateway.io/docs) | ||
| - [Pricing](https://llmgateway.io/pricing) | ||
| - [GitHub](https://github.com/theopenco/llmgateway) | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name = "Auto Route" | ||
| family = "auto" | ||
| release_date = "2024-01-01" | ||
| last_updated = "2024-01-01" | ||
| attachment = true | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = true | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 0.00 | ||
| output = 0.00 | ||
|
|
||
| [limit] | ||
| context = 128_000 | ||
| output = 16_384 | ||
|
|
||
| [modalities] | ||
| input = ["text", "image"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name = "Claude 3.5 Haiku" | ||
| family = "claude" | ||
| release_date = "2024-10-22" | ||
| last_updated = "2024-10-22" | ||
| attachment = false | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
| status = "deprecated" | ||
|
|
||
| [cost] | ||
| input = 0.80 | ||
| output = 4.00 | ||
| cache_read = 0.08 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 8_192 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
24 changes: 24 additions & 0 deletions
24
providers/llmgateway/models/claude-3-5-sonnet-20241022.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name = "Claude 3.5 Sonnet (2024-10-22)" | ||
| family = "claude" | ||
| release_date = "2024-10-22" | ||
| last_updated = "2024-10-22" | ||
| attachment = false | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
| status = "deprecated" | ||
|
|
||
| [cost] | ||
| input = 3.00 | ||
| output = 15.00 | ||
| cache_read = 0.30 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 8_192 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude 3.5 Sonnet" | ||
| family = "claude" | ||
| release_date = "2024-06-20" | ||
| last_updated = "2024-06-20" | ||
| attachment = false | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 3.00 | ||
| output = 15.00 | ||
| cache_read = 0.30 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 16_384 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
23 changes: 23 additions & 0 deletions
23
providers/llmgateway/models/claude-3-7-sonnet-20250219.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude 3.7 Sonnet (2025-02-19)" | ||
| family = "claude" | ||
| release_date = "2025-02-19" | ||
| last_updated = "2025-02-19" | ||
| attachment = false | ||
| reasoning = true | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 3.00 | ||
| output = 15.00 | ||
| cache_read = 0.30 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 8_192 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude 3.7 Sonnet" | ||
| family = "claude" | ||
| release_date = "2025-02-24" | ||
| last_updated = "2025-02-24" | ||
| attachment = false | ||
| reasoning = true | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 3.00 | ||
| output = 15.00 | ||
| cache_read = 0.30 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 8_192 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude 3 Haiku (2024-03-07)" | ||
| family = "claude" | ||
| release_date = "2024-03-04" | ||
| last_updated = "2024-03-04" | ||
| attachment = true | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 0.25 | ||
| output = 1.25 | ||
| cache_read = 0.03 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 4_096 | ||
|
|
||
| [modalities] | ||
| input = ["text", "image"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude 3 Haiku" | ||
| family = "claude" | ||
| release_date = "2024-03-04" | ||
| last_updated = "2024-03-04" | ||
| attachment = true | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 0.25 | ||
| output = 1.25 | ||
| cache_read = 0.03 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 4_096 | ||
|
|
||
| [modalities] | ||
| input = ["text", "image"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude 3 Opus" | ||
| family = "claude" | ||
| release_date = "2024-03-04" | ||
| last_updated = "2024-03-04" | ||
| attachment = true | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 15.00 | ||
| output = 75.00 | ||
| cache_read = 1.50 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 4_096 | ||
|
|
||
| [modalities] | ||
| input = ["text", "image"] | ||
| output = ["text"] |
23 changes: 23 additions & 0 deletions
23
providers/llmgateway/models/claude-haiku-4-5-20251001.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude Haiku 4.5 (2025-10-01)" | ||
| family = "claude" | ||
| release_date = "2025-10-15" | ||
| last_updated = "2025-10-15" | ||
| attachment = false | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = true | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 1.00 | ||
| output = 5.00 | ||
| cache_read = 0.10 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 64_000 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude Haiku 4.5" | ||
| family = "claude" | ||
| release_date = "2025-10-15" | ||
| last_updated = "2025-10-15" | ||
| attachment = false | ||
| reasoning = false | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = true | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 1.00 | ||
| output = 5.00 | ||
| cache_read = 0.10 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 64_000 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude Opus 4.1" | ||
| family = "claude" | ||
| release_date = "2025-08-05" | ||
| last_updated = "2025-08-05" | ||
| attachment = true | ||
| reasoning = true | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = true | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 15.00 | ||
| output = 75.00 | ||
| cache_read = 1.50 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 32_000 | ||
|
|
||
| [modalities] | ||
| input = ["text", "image"] | ||
| output = ["text"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name = "Claude Opus 4 (2025-05-14)" | ||
| family = "claude" | ||
| release_date = "2025-05-22" | ||
| last_updated = "2025-05-22" | ||
| attachment = false | ||
| reasoning = true | ||
| temperature = true | ||
| tool_call = true | ||
| structured_output = false | ||
| open_weights = false | ||
|
|
||
| [cost] | ||
| input = 15.00 | ||
| output = 75.00 | ||
| cache_read = 1.50 | ||
|
|
||
| [limit] | ||
| context = 200_000 | ||
| output = 16_384 | ||
|
|
||
| [modalities] | ||
| input = ["text"] | ||
| output = ["text"] |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.