Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/sync-models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@tanstack/ai-llmgateway': patch
'@tanstack/ai-neon': patch
'@tanstack/ai-openai': patch
'@tanstack/ai-openrouter': patch
'@tanstack/ai-vercel-gateway': patch
---

Update model metadata from OpenRouter API
50 changes: 16 additions & 34 deletions packages/ai-llmgateway/src/model-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,8 @@ export const LLMGATEWAY_CHAT_MODELS = [
'glm-5.3-flash',
'glm-5v-turbo',
'glm-image',
'gpt-3.5-turbo',
'gpt-4',
'gpt-4-turbo',
'gpt-4.1',
'gpt-4.1-mini',
'gpt-4.1-nano',
'gpt-4o',
'gpt-4o-mini',
'gpt-4o-mini-transcribe',
Expand Down Expand Up @@ -116,6 +112,7 @@ export const LLMGATEWAY_CHAT_MODELS = [
'gpt-6-luna',
'gpt-6-sol',
'gpt-6.1-sol',
'gpt-6.1-terra',
'gpt-live-transcribe',
'gpt-oss-120b',
'gpt-oss-20b',
Expand Down Expand Up @@ -149,6 +146,8 @@ export const LLMGATEWAY_CHAT_MODELS = [
'kimi-k2.7-code-highspeed',
'kimi-k3',
'kimi-k3-fast',
'kimi-k3.1-pro',
'kimi-k3.1-pro-highspeed',
'ling-3.0-flash',
'ling-3.0-flash-vl',
'llama-3-70b-instruct',
Expand All @@ -158,8 +157,6 @@ export const LLMGATEWAY_CHAT_MODELS = [
'llama-3.3-70b-instruct',
'llama-4-maverick-17b-instruct',
'llama-4-scout-17b-instruct',
'mimo-v2.5',
'mimo-v2.5-pro',
'mimo-v2.6-flash',
'mimo-v2.6-pro',
'minimax-m2',
Expand Down Expand Up @@ -189,10 +186,7 @@ export const LLMGATEWAY_CHAT_MODELS = [
'muse-spark-1.3-contributor',
'muse-wonder-1.0',
'nemotron-3-ultra-550b',
'o1',
'o3',
'o3-mini',
'o4-mini',
'qwen-flash',
'qwen-image-2.1-pro',
'qwen-image-2.1-turbo',
Expand All @@ -214,7 +208,6 @@ export const LLMGATEWAY_CHAT_MODELS = [
'qwen3-max',
'qwen3-next-80b-a3b-instruct',
'qwen3-vl-235b-a22b-instruct',
'qwen3-vl-235b-a22b-thinking',
'qwen3-vl-30b-a3b-instruct',
'qwen3-vl-plus',
'qwen3.5-122b-a10b',
Expand All @@ -233,6 +226,7 @@ export const LLMGATEWAY_CHAT_MODELS = [
'Qwen3.8-27B',
'qwen3.8-flash',
'qwen3.8-max',
'qwen3.8-omni-flash',
'qwen35-397b-a17b',
'reka-edge-2603',
'seed-1-6-250615',
Expand Down Expand Up @@ -334,12 +328,8 @@ export type LLMGatewayModelInputModalitiesByName = {
'glm-5.3-flash': readonly ['text', 'image']
'glm-5v-turbo': readonly ['text', 'image']
'glm-image': readonly ['text']
'gpt-3.5-turbo': readonly ['text']
'gpt-4': readonly ['text']
'gpt-4-turbo': readonly ['text', 'image']
'gpt-4.1': readonly ['text', 'image']
'gpt-4.1-mini': readonly ['text', 'image']
'gpt-4.1-nano': readonly ['text', 'image']
'gpt-4o': readonly ['text', 'image']
'gpt-4o-mini': readonly ['text', 'image']
'gpt-4o-mini-transcribe': readonly ['text', 'audio']
Expand Down Expand Up @@ -368,6 +358,7 @@ export type LLMGatewayModelInputModalitiesByName = {
'gpt-6-luna': readonly ['text', 'image']
'gpt-6-sol': readonly ['text', 'image']
'gpt-6.1-sol': readonly ['text', 'image']
'gpt-6.1-terra': readonly ['text', 'image']
'gpt-live-transcribe': readonly ['text', 'audio']
'gpt-oss-120b': readonly ['text']
'gpt-oss-20b': readonly ['text']
Expand Down Expand Up @@ -401,6 +392,8 @@ export type LLMGatewayModelInputModalitiesByName = {
'kimi-k2.7-code-highspeed': readonly ['text', 'image']
'kimi-k3': readonly ['text', 'image']
'kimi-k3-fast': readonly ['text', 'image']
'kimi-k3.1-pro': readonly ['text', 'image']
'kimi-k3.1-pro-highspeed': readonly ['text', 'image']
'ling-3.0-flash': readonly ['text']
'ling-3.0-flash-vl': readonly ['text', 'image']
'llama-3-70b-instruct': readonly ['text']
Expand All @@ -410,8 +403,6 @@ export type LLMGatewayModelInputModalitiesByName = {
'llama-3.3-70b-instruct': readonly ['text']
'llama-4-maverick-17b-instruct': readonly ['text', 'image']
'llama-4-scout-17b-instruct': readonly ['text', 'image']
'mimo-v2.5': readonly ['text', 'image', 'audio']
'mimo-v2.5-pro': readonly ['text']
'mimo-v2.6-flash': readonly ['text', 'image', 'audio']
'mimo-v2.6-pro': readonly ['text', 'image', 'audio']
'minimax-m2': readonly ['text']
Expand Down Expand Up @@ -441,10 +432,7 @@ export type LLMGatewayModelInputModalitiesByName = {
'muse-spark-1.3-contributor': readonly ['text', 'image']
'muse-wonder-1.0': readonly ['text', 'image']
'nemotron-3-ultra-550b': readonly ['text', 'image']
o1: readonly ['text', 'image']
o3: readonly ['text', 'image']
'o3-mini': readonly ['text']
'o4-mini': readonly ['text', 'image']
'qwen-flash': readonly ['text']
'qwen-image-2.1-pro': readonly ['text', 'image']
'qwen-image-2.1-turbo': readonly ['text', 'image']
Expand All @@ -466,7 +454,6 @@ export type LLMGatewayModelInputModalitiesByName = {
'qwen3-max': readonly ['text', 'image']
'qwen3-next-80b-a3b-instruct': readonly ['text']
'qwen3-vl-235b-a22b-instruct': readonly ['text', 'image']
'qwen3-vl-235b-a22b-thinking': readonly ['text', 'image']
'qwen3-vl-30b-a3b-instruct': readonly ['text', 'image']
'qwen3-vl-plus': readonly ['text', 'image']
'qwen3.5-122b-a10b': readonly ['text', 'image']
Expand All @@ -485,6 +472,7 @@ export type LLMGatewayModelInputModalitiesByName = {
'Qwen3.8-27B': readonly ['text', 'image']
'qwen3.8-flash': readonly ['text', 'image']
'qwen3.8-max': readonly ['text', 'image']
'qwen3.8-omni-flash': readonly ['text', 'image', 'audio']
'qwen35-397b-a17b': readonly ['text', 'image']
'reka-edge-2603': readonly ['text', 'image']
'seed-1-6-250615': readonly ['text', 'image']
Expand Down Expand Up @@ -580,12 +568,8 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'glm-5.3-flash': ['text', 'image'] as const,
'glm-5v-turbo': ['text', 'image'] as const,
'glm-image': ['text'] as const,
'gpt-3.5-turbo': ['text'] as const,
'gpt-4': ['text'] as const,
'gpt-4-turbo': ['text', 'image'] as const,
'gpt-4.1': ['text', 'image'] as const,
'gpt-4.1-mini': ['text', 'image'] as const,
'gpt-4.1-nano': ['text', 'image'] as const,
'gpt-4o': ['text', 'image'] as const,
'gpt-4o-mini': ['text', 'image'] as const,
'gpt-4o-mini-transcribe': ['text', 'audio'] as const,
Expand Down Expand Up @@ -614,6 +598,7 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'gpt-6-luna': ['text', 'image'] as const,
'gpt-6-sol': ['text', 'image'] as const,
'gpt-6.1-sol': ['text', 'image'] as const,
'gpt-6.1-terra': ['text', 'image'] as const,
'gpt-live-transcribe': ['text', 'audio'] as const,
'gpt-oss-120b': ['text'] as const,
'gpt-oss-20b': ['text'] as const,
Expand Down Expand Up @@ -647,6 +632,8 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'kimi-k2.7-code-highspeed': ['text', 'image'] as const,
'kimi-k3': ['text', 'image'] as const,
'kimi-k3-fast': ['text', 'image'] as const,
'kimi-k3.1-pro': ['text', 'image'] as const,
'kimi-k3.1-pro-highspeed': ['text', 'image'] as const,
'ling-3.0-flash': ['text'] as const,
'ling-3.0-flash-vl': ['text', 'image'] as const,
'llama-3-70b-instruct': ['text'] as const,
Expand All @@ -656,8 +643,6 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'llama-3.3-70b-instruct': ['text'] as const,
'llama-4-maverick-17b-instruct': ['text', 'image'] as const,
'llama-4-scout-17b-instruct': ['text', 'image'] as const,
'mimo-v2.5': ['text', 'image', 'audio'] as const,
'mimo-v2.5-pro': ['text'] as const,
'mimo-v2.6-flash': ['text', 'image', 'audio'] as const,
'mimo-v2.6-pro': ['text', 'image', 'audio'] as const,
'minimax-m2': ['text'] as const,
Expand Down Expand Up @@ -687,10 +672,7 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'muse-spark-1.3-contributor': ['text', 'image'] as const,
'muse-wonder-1.0': ['text', 'image'] as const,
'nemotron-3-ultra-550b': ['text', 'image'] as const,
o1: ['text', 'image'] as const,
o3: ['text', 'image'] as const,
'o3-mini': ['text'] as const,
'o4-mini': ['text', 'image'] as const,
'qwen-flash': ['text'] as const,
'qwen-image-2.1-pro': ['text', 'image'] as const,
'qwen-image-2.1-turbo': ['text', 'image'] as const,
Expand All @@ -712,7 +694,6 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'qwen3-max': ['text', 'image'] as const,
'qwen3-next-80b-a3b-instruct': ['text'] as const,
'qwen3-vl-235b-a22b-instruct': ['text', 'image'] as const,
'qwen3-vl-235b-a22b-thinking': ['text', 'image'] as const,
'qwen3-vl-30b-a3b-instruct': ['text', 'image'] as const,
'qwen3-vl-plus': ['text', 'image'] as const,
'qwen3.5-122b-a10b': ['text', 'image'] as const,
Expand All @@ -731,6 +712,7 @@ export const LLMGATEWAY_MODEL_INPUT_MODALITIES: Readonly<
'Qwen3.8-27B': ['text', 'image'] as const,
'qwen3.8-flash': ['text', 'image'] as const,
'qwen3.8-max': ['text', 'image'] as const,
'qwen3.8-omni-flash': ['text', 'image', 'audio'] as const,
'qwen35-397b-a17b': ['text', 'image'] as const,
'reka-edge-2603': ['text', 'image'] as const,
'seed-1-6-250615': ['text', 'image'] as const,
Expand Down Expand Up @@ -965,6 +947,7 @@ const LLMGATEWAY_REASONING = {
'gpt-6-luna': EFFORT_NONE_LOW_TO_MAX,
'gpt-6-sol': EFFORT_NONE_LOW_TO_MAX,
'gpt-6.1-sol': EFFORT_LOW_TO_MAX,
'gpt-6.1-terra': EFFORT_NONE_LOW_TO_MAX,
'gpt-oss-120b': EFFORT_LOW_TO_HIGH,
'gpt-oss-20b': EFFORT_LOW_TO_HIGH,
'granite-4.2-8b': EFFORT_NONE_LOW_TO_HIGH,
Expand All @@ -980,10 +963,10 @@ const LLMGATEWAY_REASONING = {
'kimi-k2.7-code-highspeed': EFFORT_LOW_TO_MAX,
'kimi-k3': EFFORT_NONE_MINIMAL_TO_MAX,
'kimi-k3-fast': EFFORT_NONE_LOW_TO_MAX,
'kimi-k3.1-pro': EFFORT_LOW_HIGH_MAX,
'kimi-k3.1-pro-highspeed': EFFORT_LOW_HIGH_MAX,
'ling-3.0-flash': EFFORT_NONE,
'ling-3.0-flash-vl': EFFORT_NONE_LOW_TO_HIGH,
'mimo-v2.5': EFFORT_NONE_LOW_TO_HIGH,
'mimo-v2.5-pro': EFFORT_NONE_LOW_TO_HIGH,
'mimo-v2.6-flash': EFFORT_NONE_LOW_TO_HIGH,
'mimo-v2.6-pro': EFFORT_NONE_LOW_TO_HIGH,
'minimax-m2': EFFORT_LOW_TO_MAX,
Expand All @@ -1002,8 +985,6 @@ const LLMGATEWAY_REASONING = {
'muse-spark-1.3': EFFORT_MINIMAL_TO_XHIGH,
'muse-spark-1.3-contributor': EFFORT_MINIMAL_TO_XHIGH,
'muse-wonder-1.0': EFFORT_MINIMAL_TO_XHIGH,
o1: EFFORT_LOW_TO_HIGH,
'o4-mini': EFFORT_LOW_TO_HIGH,
'qwen3.5-122b-a10b': EFFORT_NONE_MINIMAL_TO_MAX,
'qwen3.5-27b': EFFORT_NONE_MINIMAL_TO_MAX,
'qwen3.5-35b-a3b': EFFORT_NONE_MINIMAL_TO_MAX,
Expand All @@ -1017,6 +998,7 @@ const LLMGATEWAY_REASONING = {
'qwen3.8-27b': EFFORT_NONE_LOW_TO_HIGH,
'Qwen3.8-27B': EFFORT_LOW_MEDIUM_XHIGH,
'qwen3.8-flash': EFFORT_NONE_MINIMAL_TO_MAX,
'qwen3.8-omni-flash': EFFORT_NONE_MINIMAL_TO_MAX,
'qwen35-397b-a17b': EFFORT_NONE_MINIMAL_TO_MAX,
'seed-1-6-250615': EFFORT_MINIMAL_TO_HIGH,
'seed-1-6-250915': EFFORT_MINIMAL_TO_HIGH,
Expand Down
5 changes: 5 additions & 0 deletions packages/ai-neon/src/model-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const NEON_CHAT_MODELS = [
'gemini-3-7-flash',
'gemini-3-8-flash',
'gemini-3-flash',
'gemini-4-argon',
'gemma-3-12b',
'glm-5-2',
'glm-5-3',
Expand Down Expand Up @@ -144,6 +145,7 @@ export const NEON_MODELS_REJECTING_SAMPLING: ReadonlySet<string> = new Set([
'gemini-3-6-flash',
'gemini-3-7-flash',
'gemini-3-8-flash',
'gemini-4-argon',
'gpt-5',
'gpt-5-5',
'gpt-5-5-pro',
Expand Down Expand Up @@ -172,6 +174,7 @@ export const NEON_MODELS_REJECTING_STREAM_OPTIONS: ReadonlySet<string> =
'gemini-3-7-flash',
'gemini-3-8-flash',
'gemini-3-flash',
'gemini-4-argon',
] as const)

/** The input modalities of each chat model. */
Expand Down Expand Up @@ -200,6 +203,7 @@ export const NEON_MODEL_INPUT_MODALITIES = {
'gemini-3-7-flash': ['text', 'image', 'document', 'audio', 'video'],
'gemini-3-8-flash': ['text', 'image', 'document', 'audio', 'video'],
'gemini-3-flash': ['text', 'image', 'document', 'audio', 'video'],
'gemini-4-argon': ['text', 'image', 'document', 'audio', 'video'],
'gemma-3-12b': ['text', 'image'],
'glm-5-2': ['text'],
'glm-5-3': ['text'],
Expand Down Expand Up @@ -318,6 +322,7 @@ const NEON_REASONING = {
'gemini-3-7-flash': EFFORT_MINIMAL_TO_HIGH,
'gemini-3-8-flash': EFFORT_MINIMAL_TO_HIGH,
'gemini-3-flash': EFFORT_LOW_TO_HIGH,
'gemini-4-argon': EFFORT_LOW_TO_HIGH,
'glm-5-2': EFFORT_NONE_MINIMAL_TO_HIGH_MAX,
'glm-5-3': EFFORT_LOW_HIGH_MAX,
'glm-5-3-flash': EFFORT_LOW_HIGH_MAX,
Expand Down
Loading