Skip to content

Commit 042005a

Browse files
authored
✨ feat: Add Claude Opus 4.5 model (#10406)
1 parent 728cd02 commit 042005a

File tree

7 files changed

+165
-16
lines changed

7 files changed

+165
-16
lines changed

packages/const/src/models.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const responsesAPIModels = new Set([
4646
* models support context caching
4747
*/
4848
export const contextCachingModels = new Set([
49+
'claude-opus-4-5-20251101',
4950
'claude-haiku-4-5-20251001',
5051
'claude-sonnet-4-5-latest',
5152
'claude-sonnet-4-5-20250929',
@@ -66,9 +67,12 @@ export const contextCachingModels = new Set([
6667
'anthropic.claude-sonnet-4-5-20250929-v1:0',
6768
'us.anthropic.claude-haiku-4-5-20251001-v1:0',
6869
'anthropic.claude-haiku-4-5-20251001-v1:0',
70+
'global.anthropic.claude-opus-4-5-20251101-v1:0',
71+
'anthropic.claude-opus-4-5-20251101-v1:0',
6972
]);
7073

7174
export const thinkingWithToolClaudeModels = new Set([
75+
'claude-opus-4-5-20251101',
7276
'claude-opus-4-latest',
7377
'claude-opus-4-20250514',
7478
'claude-sonnet-4-latest',
@@ -84,4 +88,6 @@ export const thinkingWithToolClaudeModels = new Set([
8488
'anthropic.claude-sonnet-4-5-20250929-v1:0',
8589
'us.anthropic.claude-haiku-4-5-20251001-v1:0',
8690
'anthropic.claude-haiku-4-5-20251001-v1:0',
91+
'global.anthropic.claude-opus-4-5-20251101-v1:0',
92+
'anthropic.claude-opus-4-5-20251101-v1:0',
8793
]);

packages/model-bank/src/aiModels/aihubmix.ts

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,41 @@ const aihubmixModels: AIChatModelCard[] = [
588588
},
589589
type: 'chat',
590590
},
591+
{
592+
abilities: {
593+
functionCall: true,
594+
reasoning: true,
595+
search: true,
596+
structuredOutput: true,
597+
vision: true,
598+
},
599+
contextWindowTokens: 200_000,
600+
description:
601+
'Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了卓越的智能与可扩展性能,适合需要最高质量回应和推理能力的复杂任务。',
602+
displayName: 'Claude Opus 4.5',
603+
enabled: true,
604+
id: 'claude-opus-4-5-20251101',
605+
maxOutput: 64_000,
606+
pricing: {
607+
units: [
608+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
609+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
610+
{ name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
611+
{
612+
lookup: { prices: { '1h': 10, '5m': 6.25 }, pricingParams: ['ttl'] },
613+
name: 'textInput_cacheWrite',
614+
strategy: 'lookup',
615+
unit: 'millionTokens',
616+
},
617+
],
618+
},
619+
releasedAt: '2025-11-24',
620+
settings: {
621+
extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
622+
searchImpl: 'params',
623+
},
624+
type: 'chat',
625+
},
591626
{
592627
abilities: {
593628
functionCall: true,
@@ -600,7 +635,6 @@ const aihubmixModels: AIChatModelCard[] = [
600635
description:
601636
'Claude Opus 4.1 是 Anthropic 最新的用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
602637
displayName: 'Claude Opus 4.1',
603-
enabled: true,
604638
id: 'claude-opus-4-1-20250805',
605639
maxOutput: 32_000,
606640
pricing: {

packages/model-bank/src/aiModels/anthropic.ts

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,41 @@
11
import { AIChatModelCard } from '../types/aiModel';
22

33
const anthropicChatModels: AIChatModelCard[] = [
4+
{
5+
abilities: {
6+
functionCall: true,
7+
reasoning: true,
8+
search: true,
9+
structuredOutput: true,
10+
vision: true,
11+
},
12+
contextWindowTokens: 200_000,
13+
description:
14+
'Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了卓越的智能与可扩展性能,适合需要最高质量回应和推理能力的复杂任务。',
15+
displayName: 'Claude Opus 4.5',
16+
enabled: true,
17+
id: 'claude-opus-4-5-20251101',
18+
maxOutput: 64_000,
19+
pricing: {
20+
units: [
21+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
22+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
23+
{ name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
24+
{
25+
lookup: { prices: { '1h': 10, '5m': 6.25 }, pricingParams: ['ttl'] },
26+
name: 'textInput_cacheWrite',
27+
strategy: 'lookup',
28+
unit: 'millionTokens',
29+
},
30+
],
31+
},
32+
releasedAt: '2025-11-24',
33+
settings: {
34+
extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
35+
searchImpl: 'params',
36+
},
37+
type: 'chat',
38+
},
439
{
540
abilities: {
641
functionCall: true,
@@ -39,7 +74,8 @@ const anthropicChatModels: AIChatModelCard[] = [
3974
vision: true,
4075
},
4176
contextWindowTokens: 200_000,
42-
description: 'Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具有闪电般的速度和扩展思考能力。',
77+
description:
78+
'Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具有闪电般的速度和扩展思考能力。',
4379
displayName: 'Claude Haiku 4.5',
4480
enabled: true,
4581
id: 'claude-haiku-4-5-20251001',
@@ -75,7 +111,6 @@ const anthropicChatModels: AIChatModelCard[] = [
75111
description:
76112
'Claude Opus 4.1 是 Anthropic 最新的用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
77113
displayName: 'Claude Opus 4.1',
78-
enabled: true,
79114
id: 'claude-opus-4-1-20250805',
80115
maxOutput: 32_000,
81116
pricing: {

packages/model-bank/src/aiModels/bedrock.ts

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
import { AIChatModelCard } from '../types/aiModel';
22

33
const bedrockChatModels: AIChatModelCard[] = [
4+
{
5+
abilities: {
6+
functionCall: true,
7+
reasoning: true,
8+
structuredOutput: true,
9+
vision: true,
10+
},
11+
contextWindowTokens: 200_000,
12+
description:
13+
'Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了卓越的智能与可扩展性能,适合需要最高质量回应和推理能力的复杂任务。',
14+
displayName: 'Claude Opus 4.5',
15+
enabled: true,
16+
id: 'us.anthropic.claude-opus-4-5-20251101-v1:0',
17+
maxOutput: 64_000,
18+
pricing: {
19+
units: [
20+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
21+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
22+
{ name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
23+
],
24+
},
25+
releasedAt: '2025-11-24',
26+
type: 'chat',
27+
},
428
{
529
abilities: {
630
functionCall: true,
@@ -31,7 +55,8 @@ const bedrockChatModels: AIChatModelCard[] = [
3155
vision: true,
3256
},
3357
contextWindowTokens: 200_000,
34-
description: 'Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具有闪电般的速度和扩展思考能力。',
58+
description:
59+
'Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具有闪电般的速度和扩展思考能力。',
3560
displayName: 'Claude Haiku 4.5',
3661
enabled: true,
3762
id: 'us.anthropic.claude-haiku-4-5-20251001-v1:0',
@@ -77,7 +102,6 @@ const bedrockChatModels: AIChatModelCard[] = [
77102
description:
78103
'Claude 3.7 sonnet 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.7 Sonnet 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
79104
displayName: 'Claude 3.7 Sonnet',
80-
enabled: true,
81105
id: 'us.anthropic.claude-3-7-sonnet-20250219-v1:0',
82106
maxOutput: 8192,
83107
pricing: {
@@ -98,7 +122,6 @@ const bedrockChatModels: AIChatModelCard[] = [
98122
description:
99123
'Claude 3.5 Sonnet 提升了行业标准,性能超过竞争对手模型和 Claude 3 Opus,在广泛的评估中表现出色,同时具有我们中等层级模型的速度和成本。',
100124
displayName: 'Claude 3.5 Sonnet',
101-
enabled: true,
102125
id: 'anthropic.claude-3-5-sonnet-20241022-v2:0',
103126
maxOutput: 8192,
104127
pricing: {
@@ -119,7 +142,6 @@ const bedrockChatModels: AIChatModelCard[] = [
119142
description:
120143
'Claude 3.5 Sonnet 提升了行业标准,性能超过竞争对手模型和 Claude 3 Opus,在广泛的评估中表现出色,同时具有我们中等层级模型的速度和成本。',
121144
displayName: 'Claude 3.5 Sonnet v2 (Inference profile)',
122-
enabled: true,
123145
id: 'us.anthropic.claude-3-5-sonnet-20241022-v2:0',
124146
maxOutput: 8192,
125147
pricing: {
@@ -140,7 +162,6 @@ const bedrockChatModels: AIChatModelCard[] = [
140162
description:
141163
'Claude 3.5 Sonnet 提升了行业标准,性能超过竞争对手模型和 Claude 3 Opus,在广泛的评估中表现出色,同时具有我们中等层级模型的速度和成本。',
142164
displayName: 'Claude 3.5 Sonnet 0620',
143-
enabled: true,
144165
id: 'anthropic.claude-3-5-sonnet-20240620-v1:0',
145166
maxOutput: 8192,
146167
pricing: {
@@ -161,7 +182,6 @@ const bedrockChatModels: AIChatModelCard[] = [
161182
description:
162183
'Claude 3 Haiku 是 Anthropic 最快、最紧凑的模型,提供近乎即时的响应速度。它可以快速回答简单的查询和请求。客户将能够构建模仿人类互动的无缝 AI 体验。Claude 3 Haiku 可以处理图像并返回文本输出,具有 200K 的上下文窗口。',
163184
displayName: 'Claude 3 Haiku',
164-
enabled: true,
165185
id: 'anthropic.claude-3-haiku-20240307-v1:0',
166186
maxOutput: 4096,
167187
pricing: {
@@ -182,7 +202,6 @@ const bedrockChatModels: AIChatModelCard[] = [
182202
description:
183203
'Anthropic 的 Claude 3 Sonnet 在智能和速度之间达到了理想的平衡——特别适合企业工作负载。它以低于竞争对手的价格提供最大的效用,并被设计成为可靠的、高耐用的主力机,适用于规模化的 AI 部署。Claude 3 Sonnet 可以处理图像并返回文本输出,具有 200K 的上下文窗口。',
184204
displayName: 'Claude 3 Sonnet',
185-
enabled: true,
186205
id: 'anthropic.claude-3-sonnet-20240229-v1:0',
187206
pricing: {
188207
units: [
@@ -200,7 +219,6 @@ const bedrockChatModels: AIChatModelCard[] = [
200219
description:
201220
'Claude 3 Opus 是 Anthropic 最强大的 AI 模型,具有在高度复杂任务上的最先进性能。它可以处理开放式提示和未见过的场景,具有出色的流畅性和类人的理解能力。Claude 3 Opus 展示了生成 AI 可能性的前沿。Claude 3 Opus 可以处理图像并返回文本输出,具有 200K 的上下文窗口。',
202221
displayName: 'Claude 3 Opus',
203-
enabled: true,
204222
id: 'anthropic.claude-3-opus-20240229-v1:0',
205223
maxOutput: 4096,
206224
pricing: {
@@ -262,7 +280,6 @@ const bedrockChatModels: AIChatModelCard[] = [
262280
description:
263281
'Meta Llama 3.1 8B Instruct 的更新版,包括扩展的 128K 上下文长度、多语言性和改进的推理能力。Llama 3.1 提供的多语言大型语言模型 (LLMs) 是一组预训练的、指令调整的生成模型,包括 8B、70B 和 405B 大小 (文本输入/输出)。Llama 3.1 指令调整的文本模型 (8B、70B、405B) 专为多语言对话用例进行了优化,并在常见的行业基准测试中超过了许多可用的开源聊天模型。Llama 3.1 旨在用于多种语言的商业和研究用途。指令调整的文本模型适用于类似助手的聊天,而预训练模型可以适应各种自然语言生成任务。Llama 3.1 模型还支持利用其模型的输出来改进其他模型,包括合成数据生成和精炼。Llama 3.1 是使用优化的变压器架构的自回归语言模型。调整版本使用监督微调 (SFT) 和带有人类反馈的强化学习 (RLHF) 来符合人类对帮助性和安全性的偏好。',
264282
displayName: 'Llama 3.1 8B Instruct',
265-
enabled: true,
266283
id: 'meta.llama3-1-8b-instruct-v1:0',
267284
pricing: {
268285
units: [
@@ -280,7 +297,6 @@ const bedrockChatModels: AIChatModelCard[] = [
280297
description:
281298
'Meta Llama 3.1 70B Instruct 的更新版,包括扩展的 128K 上下文长度、多语言性和改进的推理能力。Llama 3.1 提供的多语言大型语言模型 (LLMs) 是一组预训练的、指令调整的生成模型,包括 8B、70B 和 405B 大小 (文本输入/输出)。Llama 3.1 指令调整的文本模型 (8B、70B、405B) 专为多语言对话用例进行了优化,并在常见的行业基准测试中超过了许多可用的开源聊天模型。Llama 3.1 旨在用于多种语言的商业和研究用途。指令调整的文本模型适用于类似助手的聊天,而预训练模型可以适应各种自然语言生成任务。Llama 3.1 模型还支持利用其模型的输出来改进其他模型,包括合成数据生成和精炼。Llama 3.1 是使用优化的变压器架构的自回归语言模型。调整版本使用监督微调 (SFT) 和带有人类反馈的强化学习 (RLHF) 来符合人类对帮助性和安全性的偏好。',
282299
displayName: 'Llama 3.1 70B Instruct',
283-
enabled: true,
284300
id: 'meta.llama3-1-70b-instruct-v1:0',
285301
pricing: {
286302
units: [
@@ -298,7 +314,6 @@ const bedrockChatModels: AIChatModelCard[] = [
298314
description:
299315
'Meta Llama 3.1 405B Instruct 是 Llama 3.1 Instruct 模型中最大、最强大的模型,是一款高度先进的对话推理和合成数据生成模型,也可以用作在特定领域进行专业持续预训练或微调的基础。Llama 3.1 提供的多语言大型语言模型 (LLMs) 是一组预训练的、指令调整的生成模型,包括 8B、70B 和 405B 大小 (文本输入/输出)。Llama 3.1 指令调整的文本模型 (8B、70B、405B) 专为多语言对话用例进行了优化,并在常见的行业基准测试中超过了许多可用的开源聊天模型。Llama 3.1 旨在用于多种语言的商业和研究用途。指令调整的文本模型适用于类似助手的聊天,而预训练模型可以适应各种自然语言生成任务。Llama 3.1 模型还支持利用其模型的输出来改进其他模型,包括合成数据生成和精炼。Llama 3.1 是使用优化的变压器架构的自回归语言模型。调整版本使用监督微调 (SFT) 和带有人类反馈的强化学习 (RLHF) 来符合人类对帮助性和安全性的偏好。',
300316
displayName: 'Llama 3.1 405B Instruct',
301-
enabled: true,
302317
id: 'meta.llama3-1-405b-instruct-v1:0',
303318
pricing: {
304319
units: [

packages/model-bank/src/aiModels/openrouter.ts

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,34 @@ const openrouterChatModels: AIChatModelCard[] = [
695695
id: 'deepseek/deepseek-chat-v3-0324:free',
696696
type: 'chat',
697697
},
698+
{
699+
abilities: {
700+
functionCall: true,
701+
reasoning: true,
702+
search: true,
703+
vision: true,
704+
},
705+
contextWindowTokens: 200_000,
706+
description:
707+
'Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了卓越的智能与可扩展性能,适合需要最高质量回应和推理能力的复杂任务。',
708+
displayName: 'Claude Opus 4.5',
709+
id: 'anthropic/claude-opus-4.5',
710+
maxOutput: 64_000,
711+
pricing: {
712+
units: [
713+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
714+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
715+
{ name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
716+
{ name: 'textInput_cacheWrite', rate: 6.25, strategy: 'fixed', unit: 'millionTokens' },
717+
],
718+
},
719+
releasedAt: '2025-11-24',
720+
settings: {
721+
extendParams: ['disableContextCaching', 'enableReasoning', 'reasoningBudgetToken'],
722+
searchImpl: 'params',
723+
},
724+
type: 'chat',
725+
},
698726
{
699727
abilities: {
700728
functionCall: true,
@@ -705,7 +733,6 @@ const openrouterChatModels: AIChatModelCard[] = [
705733
contextWindowTokens: 200_000,
706734
description: 'Claude Sonnet 4.5 是 Anthropic 迄今为止最智能的模型。',
707735
displayName: 'Claude Sonnet 4.5',
708-
enabled: true,
709736
id: 'anthropic/claude-sonnet-4.5',
710737
maxOutput: 64_000,
711738
pricing: {

packages/model-bank/src/aiModels/zenmux.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const zenmuxChatModels: AIChatModelCard[] = [
1919
description:
2020
'Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。',
2121
displayName: 'Gemini 3 Pro Image (Nano Banana Pro)',
22-
enabled: true,
2322
id: 'google/gemini-3-pro-image-preview',
2423
maxOutput: 32_768,
2524
pricing: {
@@ -42,6 +41,7 @@ const zenmuxChatModels: AIChatModelCard[] = [
4241
contextWindowTokens: 65_536,
4342
description: 'Gemini 3 Pro Image 免费版,支持受限额度的多模态生成。',
4443
displayName: 'Gemini 3 Pro Image (Nano Banana) Free',
44+
enabled: true,
4545
id: 'google/gemini-3-pro-image-preview-free',
4646
maxOutput: 32_768,
4747
pricing: {
@@ -84,6 +84,7 @@ const zenmuxChatModels: AIChatModelCard[] = [
8484
description:
8585
'Gemini 3 Pro 免费预览版,具备与标准版相同的多模态理解与推理能力,但受免费额度与速率限制影响,更适合作为体验与低频使用。',
8686
displayName: 'Gemini 3 Pro Preview Free',
87+
enabled: true,
8788
id: 'google/gemini-3-pro-preview-free',
8889
maxOutput: 65_530,
8990
pricing: {
@@ -991,6 +992,34 @@ const zenmuxChatModels: AIChatModelCard[] = [
991992
},
992993
type: 'chat',
993994
},
995+
{
996+
abilities: {
997+
functionCall: true,
998+
reasoning: true,
999+
search: true,
1000+
structuredOutput: true,
1001+
vision: true,
1002+
},
1003+
contextWindowTokens: 200_000,
1004+
description:
1005+
'Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了卓越的智能与可扩展性能,适合需要最高质量回应和推理能力的复杂任务。',
1006+
displayName: 'Claude Opus 4.5',
1007+
id: 'claude-opus-4-5-20251101',
1008+
maxOutput: 64_000,
1009+
pricing: {
1010+
units: [
1011+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
1012+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
1013+
{ name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
1014+
],
1015+
},
1016+
releasedAt: '2025-11-24',
1017+
settings: {
1018+
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
1019+
searchImpl: 'params',
1020+
},
1021+
type: 'chat',
1022+
},
9941023
{
9951024
abilities: {
9961025
functionCall: true,

packages/model-runtime/src/core/parameterResolver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export const MODEL_PARAMETER_CONFLICTS = {
252252
'claude-opus-4-1-20250805',
253253
'claude-sonnet-4-5-20250929',
254254
'claude-haiku-4-5-20251001',
255+
'claude-opus-4-5-20251101',
255256
]),
256257

257258
/**
@@ -275,5 +276,7 @@ export const MODEL_PARAMETER_CONFLICTS = {
275276
'us.anthropic.claude-sonnet-4-5-20250929-v1:0',
276277
'anthropic.claude-haiku-4-5-20251001-v1:0',
277278
'us.anthropic.claude-haiku-4-5-20251001-v1:0',
279+
'global.anthropic.claude-opus-4-5-20251101-v1:0',
280+
'anthropic.claude-opus-4-5-20251101-v1:0',
278281
]),
279282
};

0 commit comments

Comments
 (0)