Skip to content

Commit d2faac7

Browse files
committed
fix(models): refresh Anthropic catalog metadata
1 parent f8d037a commit d2faac7

3 files changed

Lines changed: 52 additions & 15 deletions

File tree

apps/docs/content/docs/workflows/blocks/agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Live tool-call chips stream for **OpenAI, Anthropic, Azure Anthropic, Google, Ve
109109
| Provider | Streamed thinking | Models |
110110
|----------|-------------------|--------|
111111
| OpenAI | Summaries only — Requires OpenAI organization verification; falls back to no summaries. | `gpt-6-astra`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-5.5-pro`, `gpt-5.5`, `gpt-5.4-pro`, `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.2-pro`, `gpt-5.2`, `gpt-5.1`, `gpt-5-pro`, `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `o4-mini`, `o3`, `o3-mini`, `o1` |
112-
| Anthropic | Summaries only — These generations omit full thinking; Sim requests summarized thinking on streaming runs. | `claude-fable-5-1`, `claude-fable-5`, `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4-8`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-sonnet-4-6`, `claude-opus-4-5`, `claude-opus-4-1`, `claude-sonnet-4-5`, `claude-haiku-4-5` |
112+
| Anthropic | Summaries only — These generations omit full thinking; Sim requests summarized thinking on streaming runs. | `claude-fable-5-1`, `claude-fable-5`, `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4-8`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-sonnet-4-6`, `claude-opus-4-5`, `claude-sonnet-4-5`, `claude-haiku-4-5` |
113113
| Azure OpenAI | Summaries only — Requires OpenAI organization verification; falls back to no summaries. | `azure/gpt-5.4`, `azure/gpt-5.4-mini`, `azure/gpt-5.4-nano`, `azure/gpt-5.2`, `azure/gpt-5.1`, `azure/gpt-5.1-codex`, `azure/gpt-5`, `azure/gpt-5-mini`, `azure/gpt-5-nano`, `azure/o3`, `azure/o4-mini` |
114114
| Azure Anthropic | Summaries only — These generations omit full thinking; Sim requests summarized thinking on streaming runs. | `azure-anthropic/claude-opus-4-6`, `azure-anthropic/claude-opus-4-5`, `azure-anthropic/claude-sonnet-4-5`, `azure-anthropic/claude-opus-4-1`, `azure-anthropic/claude-haiku-4-5` |
115115
| Google | Summaries only | `gemini-3.8-flash`, `gemini-3.6-flash`, `gemini-3.5-flash-lite`, `gemini-3.5-flash`, `gemini-3.1-pro-preview`, `gemini-3.1-flash-lite`, `gemini-3-flash-preview`, `gemini-2.5-pro`, `gemini-2.5-flash`, `gemini-2.5-flash-lite` |

apps/sim/providers/models.test.ts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,34 @@ describe('Anthropic thinking stream visibility', () => {
6262
})
6363
})
6464

65+
describe('Anthropic provider definition', () => {
66+
const anthropic = PROVIDER_DEFINITIONS.anthropic
67+
68+
it('matches Anthropic lifecycle classifications', () => {
69+
expect(
70+
anthropic.models.filter((model) => model.sunset?.status === 'legacy').map((model) => model.id)
71+
).toEqual([
72+
'claude-fable-5',
73+
'claude-opus-4-8',
74+
'claude-opus-4-7',
75+
'claude-opus-4-6',
76+
'claude-sonnet-4-6',
77+
'claude-opus-4-5',
78+
'claude-sonnet-4-5',
79+
])
80+
expect(
81+
anthropic.models
82+
.filter((model) => model.sunset?.status === 'deprecated')
83+
.map((model) => model.id)
84+
).toEqual([
85+
'claude-opus-4-1',
86+
'claude-opus-4-0',
87+
'claude-sonnet-4-0',
88+
'claude-3-haiku-20240307',
89+
])
90+
})
91+
})
92+
6593
describe('Meta thinking stream visibility', () => {
6694
it('classifies private Muse reasoning as not streamed', () => {
6795
expect(getThinkingStreamVisibility('muse-spark-1.1')).toBe('none')
@@ -92,9 +120,10 @@ describe('prompt caching capability', () => {
92120
expect(supportsPromptCaching('gpt-5.5')).toBe(false)
93121
})
94122

95-
it('reports the vendor minimum prefix, raised for Haiku', () => {
123+
it('reports each vendor minimum prefix, including retired Haiku 3', () => {
96124
expect(getPromptCachingMinimumTokens('claude-sonnet-5')).toBe(1024)
97125
expect(getPromptCachingMinimumTokens('claude-haiku-4-5')).toBe(4096)
126+
expect(getPromptCachingMinimumTokens('claude-3-haiku-20240307')).toBe(2048)
98127
expect(getPromptCachingMinimumTokens('azure-anthropic/claude-haiku-4-5')).toBe(4096)
99128
expect(getPromptCachingMinimumTokens('gpt-5.5')).toBeNull()
100129
})

apps/sim/providers/models.ts

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
908908
input: 10.0,
909909
cachedInput: 0.25,
910910
output: 50.0,
911-
updatedAt: '2026-09-01',
911+
updatedAt: '2026-09-04',
912912
},
913913
capabilities: {
914914
nativeStructuredOutputs: true,
@@ -929,7 +929,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
929929
input: 10.0,
930930
cachedInput: 1.0,
931931
output: 50.0,
932-
updatedAt: '2026-07-01',
932+
updatedAt: '2026-09-04',
933933
},
934934
capabilities: {
935935
nativeStructuredOutputs: true,
@@ -943,14 +943,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
943943
},
944944
contextWindow: 1000000,
945945
releaseDate: '2026-06-09',
946+
sunset: { status: 'legacy' },
946947
},
947948
{
948949
id: 'claude-sonnet-5',
949950
pricing: {
950951
input: 2.0,
951952
cachedInput: 0.2,
952953
output: 10.0,
953-
updatedAt: '2026-06-30',
954+
updatedAt: '2026-09-04',
954955
},
955956
capabilities: {
956957
nativeStructuredOutputs: true,
@@ -971,7 +972,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
971972
input: 5.0,
972973
cachedInput: 0.5,
973974
output: 25.0,
974-
updatedAt: '2026-07-24',
975+
updatedAt: '2026-09-04',
975976
},
976977
capabilities: {
977978
nativeStructuredOutputs: true,
@@ -993,7 +994,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
993994
input: 5.0,
994995
cachedInput: 0.5,
995996
output: 25.0,
996-
updatedAt: '2026-05-28',
997+
updatedAt: '2026-09-04',
997998
},
998999
capabilities: {
9991000
nativeStructuredOutputs: true,
@@ -1006,14 +1007,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
10061007
},
10071008
contextWindow: 1000000,
10081009
releaseDate: '2026-05-28',
1010+
sunset: { status: 'legacy' },
10091011
},
10101012
{
10111013
id: 'claude-opus-4-7',
10121014
pricing: {
10131015
input: 5.0,
10141016
cachedInput: 0.5,
10151017
output: 25.0,
1016-
updatedAt: '2026-04-16',
1018+
updatedAt: '2026-09-04',
10171019
},
10181020
capabilities: {
10191021
nativeStructuredOutputs: true,
@@ -1027,6 +1029,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
10271029
},
10281030
contextWindow: 1000000,
10291031
releaseDate: '2026-04-16',
1032+
sunset: { status: 'legacy' },
10301033
},
10311034
{
10321035
id: 'claude-opus-4-6',
@@ -1049,6 +1052,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
10491052
},
10501053
contextWindow: 1000000,
10511054
releaseDate: '2026-02-05',
1055+
sunset: { status: 'legacy' },
10521056
},
10531057
{
10541058
id: 'claude-sonnet-4-6',
@@ -1070,6 +1074,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
10701074
},
10711075
contextWindow: 1000000,
10721076
releaseDate: '2026-02-17',
1077+
sunset: { status: 'legacy' },
10731078
},
10741079
{
10751080
id: 'claude-opus-4-5',
@@ -1092,14 +1097,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
10921097
},
10931098
contextWindow: 200000,
10941099
releaseDate: '2025-11-24',
1100+
sunset: { status: 'legacy' },
10951101
},
10961102
{
10971103
id: 'claude-opus-4-1',
10981104
pricing: {
10991105
input: 15.0,
11001106
cachedInput: 1.5,
11011107
output: 75.0,
1102-
updatedAt: '2026-06-11',
1108+
updatedAt: '2026-09-04',
11031109
},
11041110
capabilities: {
11051111
temperature: { min: 0, max: 1 },
@@ -1112,15 +1118,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
11121118
},
11131119
contextWindow: 200000,
11141120
releaseDate: '2025-08-05',
1115-
sunset: { status: 'legacy' },
1121+
sunset: { status: 'deprecated' },
11161122
},
11171123
{
11181124
id: 'claude-opus-4-0',
11191125
pricing: {
11201126
input: 15.0,
11211127
cachedInput: 1.5,
11221128
output: 75.0,
1123-
updatedAt: '2026-06-11',
1129+
updatedAt: '2026-09-04',
11241130
},
11251131
capabilities: {
11261132
temperature: { min: 0, max: 1 },
@@ -1141,7 +1147,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
11411147
input: 3.0,
11421148
cachedInput: 0.3,
11431149
output: 15.0,
1144-
updatedAt: '2026-06-11',
1150+
updatedAt: '2026-09-04',
11451151
},
11461152
capabilities: {
11471153
temperature: { min: 0, max: 1 },
@@ -1155,14 +1161,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
11551161
},
11561162
contextWindow: 200000,
11571163
releaseDate: '2025-09-29',
1164+
sunset: { status: 'legacy' },
11581165
},
11591166
{
11601167
id: 'claude-sonnet-4-0',
11611168
pricing: {
11621169
input: 3.0,
11631170
cachedInput: 0.3,
11641171
output: 15.0,
1165-
updatedAt: '2026-06-11',
1172+
updatedAt: '2026-09-04',
11661173
},
11671174
capabilities: {
11681175
temperature: { min: 0, max: 1 },
@@ -1183,7 +1190,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
11831190
input: 1.0,
11841191
cachedInput: 0.1,
11851192
output: 5.0,
1186-
updatedAt: '2026-06-11',
1193+
updatedAt: '2026-09-04',
11871194
},
11881195
capabilities: {
11891196
temperature: { min: 0, max: 1 },
@@ -1206,11 +1213,12 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
12061213
input: 0.25,
12071214
cachedInput: 0.03,
12081215
output: 1.25,
1209-
updatedAt: '2026-04-01',
1216+
updatedAt: '2026-09-04',
12101217
},
12111218
capabilities: {
12121219
temperature: { min: 0, max: 1 },
12131220
maxOutputTokens: 4096,
1221+
promptCaching: { minimumCacheableTokens: 2048 },
12141222
},
12151223
contextWindow: 200000,
12161224
releaseDate: '2024-03-13',

0 commit comments

Comments
 (0)