Skip to content

Commit 0323206

Browse files
committed
fix(models): mirror reseller capabilities and lifecycle, add missing long-context tiers
1 parent 28fa1f6 commit 0323206

3 files changed

Lines changed: 87 additions & 13 deletions

File tree

‎apps/sim/app/(landing)/models/components/model-directory.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function ModelDirectory() {
134134
<h3 className='text-[18px] text-[var(--text-primary)]'>No matches found</h3>
135135
<p className='mt-2 text-[var(--text-muted)] text-sm leading-[150%]'>
136136
Try a provider name like OpenAI or Anthropic, or search for capabilities like
137-
&nbsp;structured outputs, reasoning, or deep research.
137+
&nbsp;structured outputs, reasoning, or computer use.
138138
</p>
139139
</div>
140140
) : (

‎apps/sim/providers/models.ts‎

Lines changed: 86 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
19311931
input: 10,
19321932
cachedInput: 1,
19331933
output: 50,
1934-
updatedAt: '2026-09-14',
1934+
tiers: [
1935+
{
1936+
aboveInputTokens: 272000,
1937+
input: 20,
1938+
cachedInput: 2,
1939+
output: 75,
1940+
},
1941+
],
1942+
updatedAt: '2026-11-20',
19351943
},
19361944
capabilities: {
19371945
reasoningEffort: {
@@ -1979,7 +1987,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
19791987
input: 2,
19801988
cachedInput: 0.2,
19811989
output: 12,
1982-
updatedAt: '2026-09-14',
1990+
tiers: [
1991+
{
1992+
aboveInputTokens: 272000,
1993+
input: 4,
1994+
cachedInput: 0.4,
1995+
output: 18,
1996+
},
1997+
],
1998+
updatedAt: '2026-11-20',
19831999
},
19842000
capabilities: {
19852001
reasoningEffort: {
@@ -1999,7 +2015,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
19992015
input: 0.2,
20002016
cachedInput: 0.02,
20012017
output: 1.2,
2002-
updatedAt: '2026-09-14',
2018+
tiers: [
2019+
{
2020+
aboveInputTokens: 272000,
2021+
input: 0.4,
2022+
cachedInput: 0.04,
2023+
output: 1.8,
2024+
},
2025+
],
2026+
updatedAt: '2026-11-20',
20032027
},
20042028
capabilities: {
20052029
reasoningEffort: {
@@ -2019,7 +2043,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
20192043
input: 5,
20202044
cachedInput: 0.5,
20212045
output: 30,
2022-
updatedAt: '2026-09-14',
2046+
tiers: [
2047+
{
2048+
aboveInputTokens: 272000,
2049+
input: 10,
2050+
cachedInput: 1,
2051+
output: 45,
2052+
},
2053+
],
2054+
updatedAt: '2026-11-20',
20232055
},
20242056
capabilities: {
20252057
reasoningEffort: {
@@ -2081,7 +2113,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
20812113
input: 2.5,
20822114
cachedInput: 0.25,
20832115
output: 15.0,
2084-
updatedAt: '2026-06-11',
2116+
tiers: [
2117+
{
2118+
aboveInputTokens: 272000,
2119+
input: 5,
2120+
cachedInput: 0.5,
2121+
output: 22.5,
2122+
},
2123+
],
2124+
updatedAt: '2026-11-20',
20852125
},
20862126
capabilities: {
20872127
reasoningEffort: {
@@ -2419,13 +2459,14 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
24192459
maxOutputTokens: 128000,
24202460
promptCaching: { minimumCacheableTokens: 512 },
24212461
thinking: {
2422-
levels: ['low', 'medium', 'high', 'xhigh'],
2462+
levels: ['low', 'medium', 'high', 'xhigh', 'max'],
24232463
default: 'high',
24242464
streamed: 'summary',
24252465
},
24262466
},
24272467
contextWindow: 1000000,
24282468
releaseDate: '2026-09-01',
2469+
sunset: { status: 'legacy' },
24292470
},
24302471
{
24312472
id: 'azure-anthropic/claude-fable-5',
@@ -2539,6 +2580,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
25392580
},
25402581
contextWindow: 1000000,
25412582
releaseDate: '2026-07-24',
2583+
sunset: { status: 'legacy' },
25422584
},
25432585
{
25442586
id: 'azure-anthropic/claude-opus-4-8',
@@ -2559,6 +2601,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
25592601
},
25602602
contextWindow: 1000000,
25612603
releaseDate: '2026-05-28',
2604+
sunset: { status: 'legacy' },
25622605
},
25632606
{
25642607
id: 'azure-anthropic/claude-opus-4-7',
@@ -2580,6 +2623,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
25802623
},
25812624
contextWindow: 1000000,
25822625
releaseDate: '2026-04-16',
2626+
sunset: { status: 'legacy' },
25832627
},
25842628
{
25852629
id: 'azure-anthropic/claude-opus-4-6',
@@ -2602,6 +2646,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
26022646
},
26032647
contextWindow: 1000000,
26042648
releaseDate: '2026-02-05',
2649+
sunset: { status: 'legacy' },
26052650
},
26062651
{
26072652
id: 'azure-anthropic/claude-opus-4-5',
@@ -2624,6 +2669,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
26242669
},
26252670
contextWindow: 200000,
26262671
releaseDate: '2025-11-24',
2672+
sunset: { status: 'legacy' },
26272673
},
26282674
{
26292675
id: 'azure-anthropic/claude-sonnet-5',
@@ -2644,6 +2690,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
26442690
},
26452691
contextWindow: 1000000,
26462692
releaseDate: '2026-06-30',
2693+
sunset: { status: 'legacy' },
26472694
},
26482695
{
26492696
id: 'azure-anthropic/claude-sonnet-4-6',
@@ -2665,6 +2712,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
26652712
},
26662713
contextWindow: 1000000,
26672714
releaseDate: '2026-02-17',
2715+
sunset: { status: 'legacy' },
26682716
},
26692717
{
26702718
id: 'azure-anthropic/claude-sonnet-4-5',
@@ -3289,7 +3337,15 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
32893337
input: 2.0,
32903338
cachedInput: 0.2,
32913339
output: 12.0,
3292-
updatedAt: '2026-06-11',
3340+
tiers: [
3341+
{
3342+
aboveInputTokens: 200000,
3343+
input: 4.0,
3344+
cachedInput: 0.4,
3345+
output: 18.0,
3346+
},
3347+
],
3348+
updatedAt: '2026-11-20',
32933349
},
32943350
capabilities: {
32953351
temperature: { min: 0, max: 2 },
@@ -5886,6 +5942,8 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
58865942
updatedAt: '2026-11-20',
58875943
},
58885944
capabilities: {
5945+
forcedToolUse: false,
5946+
nativeStructuredOutputs: true,
58895947
maxOutputTokens: 128000,
58905948
},
58915949
contextWindow: 1000000,
@@ -5900,6 +5958,8 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59005958
updatedAt: '2026-11-20',
59015959
},
59025960
capabilities: {
5961+
forcedToolUse: false,
5962+
nativeStructuredOutputs: true,
59035963
maxOutputTokens: 128000,
59045964
},
59055965
contextWindow: 1000000,
@@ -5914,6 +5974,8 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59145974
updatedAt: '2026-11-20',
59155975
},
59165976
capabilities: {
5977+
forcedToolUse: false,
5978+
nativeStructuredOutputs: true,
59175979
maxOutputTokens: 128000,
59185980
},
59195981
contextWindow: 1000000,
@@ -5937,6 +5999,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59375999
updatedAt: '2026-11-20',
59386000
},
59396001
capabilities: {
6002+
nativeStructuredOutputs: true,
59406003
maxOutputTokens: 128000,
59416004
},
59426005
contextWindow: 1000000,
@@ -5951,10 +6014,13 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59516014
updatedAt: '2026-11-20',
59526015
},
59536016
capabilities: {
6017+
forcedToolUse: false,
6018+
nativeStructuredOutputs: true,
59546019
maxOutputTokens: 128000,
59556020
},
59566021
contextWindow: 1000000,
59576022
releaseDate: '2026-09-01',
6023+
sunset: { status: 'legacy' },
59586024
},
59596025
{
59606026
id: 'bedrock/anthropic.claude-opus-5',
@@ -5965,10 +6031,12 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59656031
updatedAt: '2026-09-14',
59666032
},
59676033
capabilities: {
6034+
nativeStructuredOutputs: true,
59686035
maxOutputTokens: 128000,
59696036
},
59706037
contextWindow: 1000000,
59716038
releaseDate: '2026-07-24',
6039+
sunset: { status: 'legacy' },
59726040
},
59736041
{
59746042
id: 'bedrock/anthropic.claude-sonnet-5',
@@ -5979,10 +6047,12 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59796047
updatedAt: '2026-09-14',
59806048
},
59816049
capabilities: {
6050+
nativeStructuredOutputs: true,
59826051
maxOutputTokens: 128000,
59836052
},
59846053
contextWindow: 1000000,
59856054
releaseDate: '2026-06-30',
6055+
sunset: { status: 'legacy' },
59866056
},
59876057
{
59886058
id: 'bedrock/anthropic.claude-fable-5',
@@ -5993,10 +6063,12 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
59936063
updatedAt: '2026-09-14',
59946064
},
59956065
capabilities: {
6066+
nativeStructuredOutputs: true,
59966067
maxOutputTokens: 128000,
59976068
},
59986069
contextWindow: 1000000,
59996070
releaseDate: '2026-06-09',
6071+
sunset: { status: 'legacy' },
60006072
},
60016073
{
60026074
id: 'bedrock/anthropic.claude-opus-4-8',
@@ -6007,10 +6079,12 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
60076079
updatedAt: '2026-09-14',
60086080
},
60096081
capabilities: {
6082+
nativeStructuredOutputs: true,
60106083
maxOutputTokens: 128000,
60116084
},
60126085
contextWindow: 1000000,
60136086
releaseDate: '2026-05-28',
6087+
sunset: { status: 'legacy' },
60146088
},
60156089
{
60166090
id: 'bedrock/anthropic.claude-opus-4-7',
@@ -6021,10 +6095,12 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
60216095
updatedAt: '2026-09-14',
60226096
},
60236097
capabilities: {
6098+
nativeStructuredOutputs: true,
60246099
maxOutputTokens: 128000,
60256100
},
60266101
contextWindow: 1000000,
60276102
releaseDate: '2026-04-16',
6103+
sunset: { status: 'legacy' },
60286104
},
60296105
{
60306106
id: 'bedrock/anthropic.claude-sonnet-4-6',
@@ -6041,6 +6117,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
60416117
},
60426118
contextWindow: 1000000,
60436119
releaseDate: '2026-02-17',
6120+
sunset: { status: 'legacy' },
60446121
},
60456122
{
60466123
id: 'bedrock/anthropic.claude-opus-4-6-v1',
@@ -6057,6 +6134,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
60576134
},
60586135
contextWindow: 1000000,
60596136
releaseDate: '2026-02-05',
6137+
sunset: { status: 'legacy' },
60606138
},
60616139
{
60626140
id: 'bedrock/anthropic.claude-opus-4-5-20251101-v1:0',
@@ -6073,6 +6151,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
60736151
},
60746152
contextWindow: 200000,
60756153
releaseDate: '2025-11-24',
6154+
sunset: { status: 'legacy' },
60766155
},
60776156
{
60786157
id: 'bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0',

‎apps/sim/providers/utils.test.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,13 +1403,8 @@ describe('Cost Calculation', () => {
14031403

14041404
/** xAI bills the whole request at the long-context rate once the prompt reaches 200k tokens. */
14051405
it.each([
1406-
['grok-4.7', 2, 0.5, 6, 4, 1, 12],
14071406
['grok-4.6', 2, 0.5, 6, 4, 1, 12],
1408-
['grok-4.5', 2, 0.3, 6, 4, 0.6, 12],
14091407
['grok-4.3', 1.25, 0.2, 2.5, 2.5, 0.4, 5],
1410-
['grok-4.20-0309-reasoning', 1.25, 0.2, 2.5, 2.5, 0.4, 5],
1411-
['grok-4.20-0309-non-reasoning', 1.25, 0.2, 2.5, 2.5, 0.4, 5],
1412-
['grok-4.20-multi-agent-0309', 1.25, 0.2, 2.5, 2.5, 0.4, 5],
14131408
])(
14141409
'applies %s long-context rates from 200k prompt tokens, including cached input',
14151410
(model, input, cached, output, longInput, longCached, longOutput) => {

0 commit comments

Comments
 (0)