Skip to content

Commit 27d30c9

Browse files
chore: sync model metadata from OpenRouter (#623)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 21cd100 commit 27d30c9

4 files changed

Lines changed: 149 additions & 117 deletions

File tree

.changeset/sync-models.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-openrouter': patch
3+
---
4+
5+
Update model metadata from OpenRouter API

packages/typescript/ai-openrouter/src/model-meta.ts

Lines changed: 67 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,28 +1122,6 @@ const ARCEE_AI_SPOTLIGHT = {
11221122
image: 0,
11231123
},
11241124
} as const
1125-
const ARCEE_AI_TRINITY_LARGE_PREVIEW = {
1126-
id: 'arcee-ai/trinity-large-preview',
1127-
name: 'Arcee AI: Trinity Large Preview',
1128-
supports: {
1129-
input: ['text'],
1130-
output: ['text'],
1131-
supports: ['maxCompletionTokens', 'responseFormat', 'temperature', 'topP'],
1132-
},
1133-
context_window: 131000,
1134-
pricing: {
1135-
text: {
1136-
input: {
1137-
normal: 0.15,
1138-
cached: 0,
1139-
},
1140-
output: {
1141-
normal: 0.45,
1142-
},
1143-
},
1144-
image: 0,
1145-
},
1146-
} as const
11471125
const ARCEE_AI_TRINITY_LARGE_THINKING = {
11481126
id: 'arcee-ai/trinity-large-thinking',
11491127
name: 'Arcee AI: Trinity Large Thinking',
@@ -9509,7 +9487,7 @@ const QWEN_QWEN3_5_122B_A10B = {
95099487
],
95109488
},
95119489
context_window: 262144,
9512-
max_output_tokens: 65536,
9490+
max_output_tokens: 262144,
95139491
pricing: {
95149492
text: {
95159493
input: {
@@ -9789,11 +9767,11 @@ const QWEN_QWEN3_6_27B = {
97899767
],
97909768
},
97919769
context_window: 262144,
9792-
max_output_tokens: 81920,
9770+
max_output_tokens: 262144,
97939771
pricing: {
97949772
text: {
97959773
input: {
9796-
normal: 0.32,
9774+
normal: 0.3,
97979775
cached: 0,
97989776
},
97999777
output: {
@@ -9826,11 +9804,12 @@ const QWEN_QWEN3_6_35B_A3B = {
98269804
],
98279805
},
98289806
context_window: 262144,
9807+
max_output_tokens: 262144,
98299808
pricing: {
98309809
text: {
98319810
input: {
9832-
normal: 0.149,
9833-
cached: 0,
9811+
normal: 0.15,
9812+
cached: 0.05,
98349813
},
98359814
output: {
98369815
normal: 1,
@@ -9861,11 +9840,11 @@ const QWEN_QWEN3_6_FLASH = {
98619840
pricing: {
98629841
text: {
98639842
input: {
9864-
normal: 0.1875,
9865-
cached: 0.234375,
9843+
normal: 0.12375,
9844+
cached: 0.1545,
98669845
},
98679846
output: {
9868-
normal: 1.125,
9847+
normal: 0.7425,
98699848
},
98709849
},
98719850
image: 0,
@@ -9927,11 +9906,45 @@ const QWEN_QWEN3_6_PLUS = {
99279906
pricing: {
99289907
text: {
99299908
input: {
9930-
normal: 0.325,
9931-
cached: 0.40625,
9909+
normal: 0.1794,
9910+
cached: 0.2236,
9911+
},
9912+
output: {
9913+
normal: 1.07315,
9914+
},
9915+
},
9916+
image: 0,
9917+
},
9918+
} as const
9919+
const QWEN_QWEN3_7_MAX = {
9920+
id: 'qwen/qwen3.7-max',
9921+
name: 'Qwen: Qwen3.7 Max',
9922+
supports: {
9923+
input: ['text'],
9924+
output: ['text'],
9925+
supports: [
9926+
'logprobs',
9927+
'maxCompletionTokens',
9928+
'presencePenalty',
9929+
'reasoning',
9930+
'responseFormat',
9931+
'seed',
9932+
'temperature',
9933+
'toolChoice',
9934+
'topLogprobs',
9935+
'topP',
9936+
],
9937+
},
9938+
context_window: 1000000,
9939+
max_output_tokens: 65536,
9940+
pricing: {
9941+
text: {
9942+
input: {
9943+
normal: 2.5,
9944+
cached: 3.125,
99329945
},
99339946
output: {
9934-
normal: 1.95,
9947+
normal: 7.5,
99359948
},
99369949
},
99379950
image: 0,
@@ -11251,16 +11264,15 @@ const Z_AI_GLM_5_1 = {
1125111264
'topP',
1125211265
],
1125311266
},
11254-
context_window: 202800,
11255-
max_output_tokens: 202800,
11267+
context_window: 202752,
1125611268
pricing: {
1125711269
text: {
1125811270
input: {
11259-
normal: 0,
11260-
cached: 0,
11271+
normal: 0.98,
11272+
cached: 0.182,
1126111273
},
1126211274
output: {
11263-
normal: 0,
11275+
normal: 3.08,
1126411276
},
1126511277
},
1126611278
image: 0,
@@ -11663,11 +11675,6 @@ export type OpenRouterModelOptionsByName = {
1166311675
| 'temperature'
1166411676
| 'topP'
1166511677
>
11666-
[ARCEE_AI_TRINITY_LARGE_PREVIEW.id]: OpenRouterCommonOptions &
11667-
Pick<
11668-
OpenRouterBaseOptions,
11669-
'maxCompletionTokens' | 'responseFormat' | 'temperature' | 'topP'
11670-
>
1167111678
[ARCEE_AI_TRINITY_LARGE_THINKING.id]: OpenRouterCommonOptions &
1167211679
Pick<
1167311680
OpenRouterBaseOptions,
@@ -15045,6 +15052,20 @@ export type OpenRouterModelOptionsByName = {
1504515052
| 'toolChoice'
1504615053
| 'topP'
1504715054
>
15055+
[QWEN_QWEN3_7_MAX.id]: OpenRouterCommonOptions &
15056+
Pick<
15057+
OpenRouterBaseOptions,
15058+
| 'logprobs'
15059+
| 'maxCompletionTokens'
15060+
| 'presencePenalty'
15061+
| 'reasoning'
15062+
| 'responseFormat'
15063+
| 'seed'
15064+
| 'temperature'
15065+
| 'toolChoice'
15066+
| 'topLogprobs'
15067+
| 'topP'
15068+
>
1504815069
[REKAAI_REKA_EDGE.id]: OpenRouterCommonOptions &
1504915070
Pick<
1505015071
OpenRouterBaseOptions,
@@ -15634,7 +15655,6 @@ export type OpenRouterModelInputModalitiesByName = {
1563415655
[ARCEE_AI_CODER_LARGE.id]: ReadonlyArray<'text'>
1563515656
[ARCEE_AI_MAESTRO_REASONING.id]: ReadonlyArray<'text'>
1563615657
[ARCEE_AI_SPOTLIGHT.id]: ReadonlyArray<'image' | 'text'>
15637-
[ARCEE_AI_TRINITY_LARGE_PREVIEW.id]: ReadonlyArray<'text'>
1563815658
[ARCEE_AI_TRINITY_LARGE_THINKING.id]: ReadonlyArray<'text'>
1563915659
[ARCEE_AI_TRINITY_LARGE_THINKING_FREE.id]: ReadonlyArray<'text'>
1564015660
[ARCEE_AI_TRINITY_MINI.id]: ReadonlyArray<'text'>
@@ -15954,6 +15974,7 @@ export type OpenRouterModelInputModalitiesByName = {
1595415974
[QWEN_QWEN3_6_FLASH.id]: ReadonlyArray<'text' | 'image' | 'video'>
1595515975
[QWEN_QWEN3_6_MAX_PREVIEW.id]: ReadonlyArray<'text'>
1595615976
[QWEN_QWEN3_6_PLUS.id]: ReadonlyArray<'text' | 'image' | 'video'>
15977+
[QWEN_QWEN3_7_MAX.id]: ReadonlyArray<'text'>
1595715978
[REKAAI_REKA_EDGE.id]: ReadonlyArray<'image' | 'text' | 'video'>
1595815979
[REKAAI_REKA_FLASH_3.id]: ReadonlyArray<'text'>
1595915980
[RELACE_RELACE_APPLY_3.id]: ReadonlyArray<'text'>
@@ -16040,7 +16061,6 @@ export const OPENROUTER_CHAT_MODELS = [
1604016061
ARCEE_AI_CODER_LARGE.id,
1604116062
ARCEE_AI_MAESTRO_REASONING.id,
1604216063
ARCEE_AI_SPOTLIGHT.id,
16043-
ARCEE_AI_TRINITY_LARGE_PREVIEW.id,
1604416064
ARCEE_AI_TRINITY_LARGE_THINKING.id,
1604516065
ARCEE_AI_TRINITY_LARGE_THINKING_FREE.id,
1604616066
ARCEE_AI_TRINITY_MINI.id,
@@ -16312,6 +16332,7 @@ export const OPENROUTER_CHAT_MODELS = [
1631216332
QWEN_QWEN3_6_FLASH.id,
1631316333
QWEN_QWEN3_6_MAX_PREVIEW.id,
1631416334
QWEN_QWEN3_6_PLUS.id,
16335+
QWEN_QWEN3_7_MAX.id,
1631516336
REKAAI_REKA_EDGE.id,
1631616337
REKAAI_REKA_FLASH_3.id,
1631716338
RELACE_RELACE_APPLY_3.id,
@@ -16358,10 +16379,7 @@ export const OPENROUTER_CHAT_MODELS = [
1635816379
] as const
1635916380

1636016381
export type OpenRouterChatModelToolCapabilitiesByName = {
16361-
[K in (typeof OPENROUTER_CHAT_MODELS)[number]]: readonly [
16362-
'web_search',
16363-
'web_fetch',
16364-
]
16382+
[K in (typeof OPENROUTER_CHAT_MODELS)[number]]: readonly ['web_search']
1636516383
}
1636616384

1636716385
export const OPENROUTER_IMAGE_MODELS = [

scripts/.sync-models-last-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1779353499
1+
1779439521

0 commit comments

Comments
 (0)