@stll/ai-catalog 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +38 -7
- package/dist/index.js +51 -3
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -234,6 +234,13 @@ export declare const MODEL_RATES: {
|
|
|
234
234
|
readonly outputPerMTok: 1400000;
|
|
235
235
|
readonly cachedInputPerMTok: 17500;
|
|
236
236
|
};
|
|
237
|
+
readonly "claude-sonnet-5-5": {
|
|
238
|
+
readonly kind: "flat";
|
|
239
|
+
readonly inputPerMTok: 200000;
|
|
240
|
+
readonly outputPerMTok: 1000000;
|
|
241
|
+
readonly cachedInputPerMTok: 20000;
|
|
242
|
+
readonly cachedWriteInputPerMTok: 250000;
|
|
243
|
+
};
|
|
237
244
|
readonly "claude-sonnet-5": {
|
|
238
245
|
readonly kind: "flat";
|
|
239
246
|
readonly inputPerMTok: 200000;
|
|
@@ -353,16 +360,19 @@ export declare const MODEL_RATES: {
|
|
|
353
360
|
readonly kind: "flat";
|
|
354
361
|
readonly inputPerMTok: 50000;
|
|
355
362
|
readonly outputPerMTok: 150000;
|
|
363
|
+
readonly cachedInputPerMTok: 5000;
|
|
356
364
|
};
|
|
357
365
|
readonly "mistral-medium-latest": {
|
|
358
366
|
readonly kind: "flat";
|
|
359
367
|
readonly inputPerMTok: 150000;
|
|
360
368
|
readonly outputPerMTok: 750000;
|
|
369
|
+
readonly cachedInputPerMTok: 15000;
|
|
361
370
|
};
|
|
362
371
|
readonly "mistral-small-latest": {
|
|
363
372
|
readonly kind: "flat";
|
|
364
373
|
readonly inputPerMTok: 15000;
|
|
365
374
|
readonly outputPerMTok: 60000;
|
|
375
|
+
readonly cachedInputPerMTok: 1500;
|
|
366
376
|
};
|
|
367
377
|
readonly "gemini-2.5-flash": {
|
|
368
378
|
readonly kind: "flat";
|
|
@@ -515,6 +525,7 @@ export declare const MODEL_REASONING_EFFORTS: {
|
|
|
515
525
|
readonly "google/gemini-3.1-pro-preview": readonly ["low", "medium", "high"];
|
|
516
526
|
readonly "google/gemini-3.5-flash": readonly ["minimal", "low", "medium", "high"];
|
|
517
527
|
readonly "google/gemini-3.1-flash-lite": readonly ["none", "minimal", "low", "medium", "high"];
|
|
528
|
+
readonly "anthropic/claude-sonnet-5.5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
518
529
|
readonly "anthropic/claude-sonnet-5": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
519
530
|
readonly "anthropic/claude-opus-5": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
520
531
|
readonly "anthropic/claude-opus-4.8": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
@@ -532,6 +543,7 @@ export declare const MODEL_REASONING_EFFORTS: {
|
|
|
532
543
|
readonly "gpt-5.4-mini": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
533
544
|
readonly "gpt-5.4-nano": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
534
545
|
readonly "gpt-5.2": readonly ["none", "low", "medium", "high", "xhigh"];
|
|
546
|
+
readonly "claude-sonnet-5-5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
535
547
|
readonly "claude-sonnet-5": readonly ["none", "low", "medium", "high", "xhigh", "max"];
|
|
536
548
|
readonly "claude-fable-5-1": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
537
549
|
readonly "claude-fable-5": readonly ["low", "medium", "high", "xhigh", "max"];
|
|
@@ -579,6 +591,7 @@ export declare const MODEL_DEFAULT_REASONING_EFFORTS: {
|
|
|
579
591
|
readonly "google/gemini-3.1-pro-preview": "medium";
|
|
580
592
|
readonly "google/gemini-3.5-flash": "medium";
|
|
581
593
|
readonly "google/gemini-3.1-flash-lite": "minimal";
|
|
594
|
+
readonly "anthropic/claude-sonnet-5.5": "high";
|
|
582
595
|
readonly "anthropic/claude-sonnet-5": "high";
|
|
583
596
|
readonly "anthropic/claude-opus-5": "high";
|
|
584
597
|
readonly "anthropic/claude-opus-4.8": "high";
|
|
@@ -596,6 +609,7 @@ export declare const MODEL_DEFAULT_REASONING_EFFORTS: {
|
|
|
596
609
|
readonly "gpt-5.4-mini": null;
|
|
597
610
|
readonly "gpt-5.4-nano": null;
|
|
598
611
|
readonly "gpt-5.2": null;
|
|
612
|
+
readonly "claude-sonnet-5-5": null;
|
|
599
613
|
readonly "claude-sonnet-5": null;
|
|
600
614
|
readonly "claude-fable-5-1": null;
|
|
601
615
|
readonly "claude-fable-5": null;
|
|
@@ -643,6 +657,7 @@ export declare const MODEL_TEMPERATURE_POLICIES: {
|
|
|
643
657
|
readonly "google/gemini-3.1-pro-preview": "emit";
|
|
644
658
|
readonly "google/gemini-3.5-flash": "emit";
|
|
645
659
|
readonly "google/gemini-3.1-flash-lite": "emit";
|
|
660
|
+
readonly "anthropic/claude-sonnet-5.5": "emit";
|
|
646
661
|
readonly "anthropic/claude-sonnet-5": "omit";
|
|
647
662
|
readonly "anthropic/claude-opus-5": "emit";
|
|
648
663
|
readonly "anthropic/claude-opus-4.8": "emit";
|
|
@@ -660,6 +675,7 @@ export declare const MODEL_TEMPERATURE_POLICIES: {
|
|
|
660
675
|
readonly "gpt-5.4-mini": "emit";
|
|
661
676
|
readonly "gpt-5.4-nano": "emit";
|
|
662
677
|
readonly "gpt-5.2": "emit";
|
|
678
|
+
readonly "claude-sonnet-5-5": "omit";
|
|
663
679
|
readonly "claude-sonnet-5": "omit";
|
|
664
680
|
readonly "claude-fable-5-1": "omit";
|
|
665
681
|
readonly "claude-fable-5": "omit";
|
|
@@ -707,6 +723,7 @@ export declare const MODEL_OUTPUT_TOKEN_LIMITS: {
|
|
|
707
723
|
readonly "google/gemini-3.1-pro-preview": 65536;
|
|
708
724
|
readonly "google/gemini-3.5-flash": 65536;
|
|
709
725
|
readonly "google/gemini-3.1-flash-lite": 65536;
|
|
726
|
+
readonly "anthropic/claude-sonnet-5.5": 128000;
|
|
710
727
|
readonly "anthropic/claude-sonnet-5": 128000;
|
|
711
728
|
readonly "anthropic/claude-opus-5": 128000;
|
|
712
729
|
readonly "anthropic/claude-opus-4.8": 128000;
|
|
@@ -724,6 +741,7 @@ export declare const MODEL_OUTPUT_TOKEN_LIMITS: {
|
|
|
724
741
|
readonly "gpt-5.4-mini": 128000;
|
|
725
742
|
readonly "gpt-5.4-nano": 128000;
|
|
726
743
|
readonly "gpt-5.2": 128000;
|
|
744
|
+
readonly "claude-sonnet-5-5": 128000;
|
|
727
745
|
readonly "claude-sonnet-5": 128000;
|
|
728
746
|
readonly "claude-fable-5-1": 128000;
|
|
729
747
|
readonly "claude-fable-5": 128000;
|
|
@@ -910,9 +928,9 @@ export declare const DEFAULT_MODELS: {
|
|
|
910
928
|
*/
|
|
911
929
|
export declare const BYOK_MODEL_OPTIONS: {
|
|
912
930
|
readonly google: readonly ["gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3.5-flash", "gemini-3.1-flash-lite"];
|
|
913
|
-
readonly anthropic: readonly ["claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
931
|
+
readonly anthropic: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
914
932
|
readonly openai: readonly [...("gpt-6-astra" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.6" | "gpt-5.6-terra" | "gpt-5.6-luna")[], "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.2"];
|
|
915
|
-
readonly openrouter: readonly [...("openai/gpt-6-astra" | "openai/gpt-6-sol" | "openai/gpt-6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra" | "openai/gpt-5.6-luna")[], "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
933
|
+
readonly openrouter: readonly [...("openai/gpt-6-astra" | "openai/gpt-6-sol" | "openai/gpt-6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra" | "openai/gpt-5.6-luna")[], "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5.5", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
916
934
|
readonly bedrock: readonly ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "us.anthropic.claude-haiku-4-5-20251001-v1:0", "us.amazon.nova-pro-v1:0", "us.amazon.nova-lite-v1:0", "us.amazon.nova-micro-v1:0", "openai.gpt-oss-120b-1:0", "openai.gpt-oss-20b-1:0"];
|
|
917
935
|
readonly mistral: readonly ["mistral-large-latest", "mistral-medium-latest", "mistral-small-latest"];
|
|
918
936
|
};
|
|
@@ -960,6 +978,10 @@ export declare const MODEL_DISPLAY_METADATA: {
|
|
|
960
978
|
readonly displayName: "Gemini 3.1 Flash Lite";
|
|
961
979
|
readonly iconProvider: "google";
|
|
962
980
|
};
|
|
981
|
+
readonly "claude-sonnet-5-5": {
|
|
982
|
+
readonly displayName: "Claude Sonnet 5.5";
|
|
983
|
+
readonly iconProvider: "anthropic";
|
|
984
|
+
};
|
|
963
985
|
readonly "claude-sonnet-5": {
|
|
964
986
|
readonly displayName: "Claude Sonnet 5";
|
|
965
987
|
readonly iconProvider: "anthropic";
|
|
@@ -1096,6 +1118,10 @@ export declare const MODEL_DISPLAY_METADATA: {
|
|
|
1096
1118
|
readonly displayName: "Gemini 3.1 Flash Lite";
|
|
1097
1119
|
readonly iconProvider: "google";
|
|
1098
1120
|
};
|
|
1121
|
+
readonly "anthropic/claude-sonnet-5.5": {
|
|
1122
|
+
readonly displayName: "Claude Sonnet 5.5";
|
|
1123
|
+
readonly iconProvider: "anthropic";
|
|
1124
|
+
};
|
|
1099
1125
|
readonly "anthropic/claude-sonnet-5": {
|
|
1100
1126
|
readonly displayName: "Claude Sonnet 5";
|
|
1101
1127
|
readonly iconProvider: "anthropic";
|
|
@@ -1169,9 +1195,9 @@ export declare const getModelDisplayMetadata: (modelId: string) => ModelDisplayM
|
|
|
1169
1195
|
*/
|
|
1170
1196
|
export declare const BYOK_DOCUMENT_INPUT_MODEL_OPTIONS: {
|
|
1171
1197
|
readonly google: readonly ["gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3.5-flash", "gemini-3.1-flash-lite"];
|
|
1172
|
-
readonly openrouter: readonly ["openai/gpt-6-astra", "openai/gpt-6-sol", "openai/gpt-6-luna", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1198
|
+
readonly openrouter: readonly ["openai/gpt-6-astra", "openai/gpt-6-sol", "openai/gpt-6-luna", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5.5", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1173
1199
|
readonly openai: readonly ["gpt-6-astra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.2"];
|
|
1174
|
-
readonly anthropic: readonly ["claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1200
|
+
readonly anthropic: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1175
1201
|
readonly bedrock: readonly ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "us.anthropic.claude-haiku-4-5-20251001-v1:0", "us.amazon.nova-pro-v1:0", "us.amazon.nova-lite-v1:0"];
|
|
1176
1202
|
readonly mistral: readonly [];
|
|
1177
1203
|
};
|
|
@@ -1200,9 +1226,9 @@ export declare const isBYOKModelRoleSupported: ({ provider, modelId, role }: {
|
|
|
1200
1226
|
export declare const CHAT_PDF_ATTACHMENT_MODEL_OPTIONS: {
|
|
1201
1227
|
readonly mistral: readonly ["mistral-medium-latest", "mistral-small-latest"];
|
|
1202
1228
|
readonly google: readonly ["gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash-lite", "gemini-3.1-pro-preview", "gemini-3.5-flash", "gemini-3.1-flash-lite"];
|
|
1203
|
-
readonly openrouter: readonly ["openai/gpt-6-astra", "openai/gpt-6-sol", "openai/gpt-6-luna", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1229
|
+
readonly openrouter: readonly ["openai/gpt-6-astra", "openai/gpt-6-sol", "openai/gpt-6-luna", "openai/gpt-5.6-sol", "openai/gpt-5.6-terra", "openai/gpt-5.6-luna", "google/gemini-3.8-flash", "google/gemini-3.7-flash", "google/gemini-3.6-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.1-pro-preview", "google/gemini-3.5-flash", "google/gemini-3.1-flash-lite", "anthropic/claude-sonnet-5.5", "anthropic/claude-sonnet-5", "anthropic/claude-opus-5", "anthropic/claude-opus-4.8", "anthropic/claude-sonnet-4.6", "openai/gpt-5.5", "openai/gpt-5.4-mini"];
|
|
1204
1230
|
readonly openai: readonly ["gpt-6-astra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.2"];
|
|
1205
|
-
readonly anthropic: readonly ["claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1231
|
+
readonly anthropic: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5-20251001"];
|
|
1206
1232
|
readonly bedrock: readonly ["us.anthropic.claude-sonnet-4-5-20250929-v1:0", "us.anthropic.claude-haiku-4-5-20251001-v1:0", "us.amazon.nova-pro-v1:0", "us.amazon.nova-lite-v1:0"];
|
|
1207
1233
|
};
|
|
1208
1234
|
export declare const isChatPdfAttachmentModelSupported: ({ provider, modelId }: {
|
|
@@ -1234,7 +1260,7 @@ export declare const resolveWorkingBYOKModelForRole: ({ provider, modelId, role
|
|
|
1234
1260
|
* legacy budget-based form, so every Opus 4.6+/Sonnet 4.6/Fable entry
|
|
1235
1261
|
* offered above must appear here or it will 400 on the reasoning role.
|
|
1236
1262
|
*/
|
|
1237
|
-
export declare const ANTHROPIC_ADAPTIVE_THINKING_MODELS: readonly ["claude-sonnet-5", "claude-opus-5", "claude-sonnet-4-6", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8", "claude-fable-5", "claude-fable-5-1", "claude-opus-5-5"];
|
|
1263
|
+
export declare const ANTHROPIC_ADAPTIVE_THINKING_MODELS: readonly ["claude-sonnet-5-5", "claude-sonnet-5", "claude-opus-5", "claude-sonnet-4-6", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8", "claude-fable-5", "claude-fable-5-1", "claude-opus-5-5"];
|
|
1238
1264
|
/**
|
|
1239
1265
|
* Canonical reasoning-effort ladder, ordered weakest to strongest.
|
|
1240
1266
|
* Union of every effort keyword the offered providers accept; no
|
|
@@ -1278,6 +1304,7 @@ export declare const FALLBACK_CHAT_MODEL_BY_PROVIDER: {
|
|
|
1278
1304
|
export declare const MODEL_CATALOG_ID_ALIASES: {
|
|
1279
1305
|
readonly "gpt-5.6-sol": "gpt-5.6";
|
|
1280
1306
|
readonly "claude-opus-4.8": "claude-opus-4-8";
|
|
1307
|
+
readonly "claude-sonnet-5.5": "claude-sonnet-5-5";
|
|
1281
1308
|
readonly "claude-sonnet-4.6": "claude-sonnet-4-6";
|
|
1282
1309
|
};
|
|
1283
1310
|
export declare const normalizeModelCatalogId: (modelId: string) => string;
|
|
@@ -1331,6 +1358,7 @@ export declare const MODEL_STREAMING_TOOL_USE: {
|
|
|
1331
1358
|
readonly "google/gemini-3.1-pro-preview": "supported";
|
|
1332
1359
|
readonly "google/gemini-3.5-flash": "supported";
|
|
1333
1360
|
readonly "google/gemini-3.1-flash-lite": "supported";
|
|
1361
|
+
readonly "anthropic/claude-sonnet-5.5": "supported";
|
|
1334
1362
|
readonly "anthropic/claude-sonnet-5": "supported";
|
|
1335
1363
|
readonly "anthropic/claude-opus-5": "supported";
|
|
1336
1364
|
readonly "anthropic/claude-opus-4.8": "supported";
|
|
@@ -1348,6 +1376,7 @@ export declare const MODEL_STREAMING_TOOL_USE: {
|
|
|
1348
1376
|
readonly "gpt-5.4-mini": "supported";
|
|
1349
1377
|
readonly "gpt-5.4-nano": "supported";
|
|
1350
1378
|
readonly "gpt-5.2": "supported";
|
|
1379
|
+
readonly "claude-sonnet-5-5": "supported";
|
|
1351
1380
|
readonly "claude-sonnet-5": "supported";
|
|
1352
1381
|
readonly "claude-fable-5-1": "supported";
|
|
1353
1382
|
readonly "claude-fable-5": "supported";
|
|
@@ -1450,6 +1479,7 @@ export declare const CONTEXT_WINDOW_TOKENS: {
|
|
|
1450
1479
|
readonly "claude-haiku-4-5-20251001": 200000;
|
|
1451
1480
|
readonly "claude-sonnet-4-6": 200000;
|
|
1452
1481
|
readonly "claude-sonnet-5": 1000000;
|
|
1482
|
+
readonly "claude-sonnet-5-5": 1000000;
|
|
1453
1483
|
readonly "claude-opus-4-6": 200000;
|
|
1454
1484
|
readonly "claude-opus-4-7": 200000;
|
|
1455
1485
|
readonly "claude-opus-4-8": 200000;
|
|
@@ -1469,6 +1499,7 @@ export declare const CONTEXT_WINDOW_TOKENS: {
|
|
|
1469
1499
|
readonly "google/gemini-3.1-pro-preview": 1048576;
|
|
1470
1500
|
readonly "google/gemini-3.5-flash": 1048576;
|
|
1471
1501
|
readonly "google/gemini-3.1-flash-lite": 1048576;
|
|
1502
|
+
readonly "anthropic/claude-sonnet-5.5": 1000000;
|
|
1472
1503
|
readonly "anthropic/claude-sonnet-5": 1000000;
|
|
1473
1504
|
readonly "anthropic/claude-opus-5": 1000000;
|
|
1474
1505
|
readonly "anthropic/claude-opus-4.8": 200000;
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ const MODEL_DOCUMENT_INPUT_OPTIONS = {
|
|
|
28
28
|
"google/gemini-3.1-pro-preview",
|
|
29
29
|
"google/gemini-3.5-flash",
|
|
30
30
|
"google/gemini-3.1-flash-lite",
|
|
31
|
+
"anthropic/claude-sonnet-5.5",
|
|
31
32
|
"anthropic/claude-sonnet-5",
|
|
32
33
|
"anthropic/claude-opus-5",
|
|
33
34
|
"anthropic/claude-opus-4.8",
|
|
@@ -49,6 +50,7 @@ const MODEL_DOCUMENT_INPUT_OPTIONS = {
|
|
|
49
50
|
"gpt-5.2"
|
|
50
51
|
],
|
|
51
52
|
anthropic: [
|
|
53
|
+
"claude-sonnet-5-5",
|
|
52
54
|
"claude-sonnet-5",
|
|
53
55
|
"claude-fable-5-1",
|
|
54
56
|
"claude-fable-5",
|
|
@@ -201,6 +203,13 @@ const MODEL_REASONING_EFFORTS = {
|
|
|
201
203
|
"medium",
|
|
202
204
|
"high"
|
|
203
205
|
],
|
|
206
|
+
"anthropic/claude-sonnet-5.5": [
|
|
207
|
+
"low",
|
|
208
|
+
"medium",
|
|
209
|
+
"high",
|
|
210
|
+
"xhigh",
|
|
211
|
+
"max"
|
|
212
|
+
],
|
|
204
213
|
"anthropic/claude-sonnet-5": [
|
|
205
214
|
"none",
|
|
206
215
|
"low",
|
|
@@ -328,6 +337,13 @@ const MODEL_REASONING_EFFORTS = {
|
|
|
328
337
|
"high",
|
|
329
338
|
"xhigh"
|
|
330
339
|
],
|
|
340
|
+
"claude-sonnet-5-5": [
|
|
341
|
+
"low",
|
|
342
|
+
"medium",
|
|
343
|
+
"high",
|
|
344
|
+
"xhigh",
|
|
345
|
+
"max"
|
|
346
|
+
],
|
|
331
347
|
"claude-sonnet-5": [
|
|
332
348
|
"none",
|
|
333
349
|
"low",
|
|
@@ -436,6 +452,7 @@ const MODEL_DEFAULT_REASONING_EFFORTS = {
|
|
|
436
452
|
"google/gemini-3.1-pro-preview": "medium",
|
|
437
453
|
"google/gemini-3.5-flash": "medium",
|
|
438
454
|
"google/gemini-3.1-flash-lite": "minimal",
|
|
455
|
+
"anthropic/claude-sonnet-5.5": "high",
|
|
439
456
|
"anthropic/claude-sonnet-5": "high",
|
|
440
457
|
"anthropic/claude-opus-5": "high",
|
|
441
458
|
"anthropic/claude-opus-4.8": "high",
|
|
@@ -453,6 +470,7 @@ const MODEL_DEFAULT_REASONING_EFFORTS = {
|
|
|
453
470
|
"gpt-5.4-mini": null,
|
|
454
471
|
"gpt-5.4-nano": null,
|
|
455
472
|
"gpt-5.2": null,
|
|
473
|
+
"claude-sonnet-5-5": null,
|
|
456
474
|
"claude-sonnet-5": null,
|
|
457
475
|
"claude-fable-5-1": null,
|
|
458
476
|
"claude-fable-5": null,
|
|
@@ -500,6 +518,7 @@ const MODEL_TEMPERATURE_POLICIES = {
|
|
|
500
518
|
"google/gemini-3.1-pro-preview": "emit",
|
|
501
519
|
"google/gemini-3.5-flash": "emit",
|
|
502
520
|
"google/gemini-3.1-flash-lite": "emit",
|
|
521
|
+
"anthropic/claude-sonnet-5.5": "emit",
|
|
503
522
|
"anthropic/claude-sonnet-5": "omit",
|
|
504
523
|
"anthropic/claude-opus-5": "emit",
|
|
505
524
|
"anthropic/claude-opus-4.8": "emit",
|
|
@@ -517,6 +536,7 @@ const MODEL_TEMPERATURE_POLICIES = {
|
|
|
517
536
|
"gpt-5.4-mini": "emit",
|
|
518
537
|
"gpt-5.4-nano": "emit",
|
|
519
538
|
"gpt-5.2": "emit",
|
|
539
|
+
"claude-sonnet-5-5": "omit",
|
|
520
540
|
"claude-sonnet-5": "omit",
|
|
521
541
|
"claude-fable-5-1": "omit",
|
|
522
542
|
"claude-fable-5": "omit",
|
|
@@ -564,6 +584,7 @@ const MODEL_OUTPUT_TOKEN_LIMITS = {
|
|
|
564
584
|
"google/gemini-3.1-pro-preview": 65536,
|
|
565
585
|
"google/gemini-3.5-flash": 65536,
|
|
566
586
|
"google/gemini-3.1-flash-lite": 65536,
|
|
587
|
+
"anthropic/claude-sonnet-5.5": 128e3,
|
|
567
588
|
"anthropic/claude-sonnet-5": 128e3,
|
|
568
589
|
"anthropic/claude-opus-5": 128e3,
|
|
569
590
|
"anthropic/claude-opus-4.8": 128e3,
|
|
@@ -581,6 +602,7 @@ const MODEL_OUTPUT_TOKEN_LIMITS = {
|
|
|
581
602
|
"gpt-5.4-mini": 128e3,
|
|
582
603
|
"gpt-5.4-nano": 128e3,
|
|
583
604
|
"gpt-5.2": 128e3,
|
|
605
|
+
"claude-sonnet-5-5": 128e3,
|
|
584
606
|
"claude-sonnet-5": 128e3,
|
|
585
607
|
"claude-fable-5-1": 128e3,
|
|
586
608
|
"claude-fable-5": 128e3,
|
|
@@ -797,6 +819,13 @@ const MODEL_RATES = {
|
|
|
797
819
|
outputPerMTok: 14e5,
|
|
798
820
|
cachedInputPerMTok: 17500
|
|
799
821
|
},
|
|
822
|
+
"claude-sonnet-5-5": {
|
|
823
|
+
kind: "flat",
|
|
824
|
+
inputPerMTok: 2e5,
|
|
825
|
+
outputPerMTok: 1e6,
|
|
826
|
+
cachedInputPerMTok: 2e4,
|
|
827
|
+
cachedWriteInputPerMTok: 25e4
|
|
828
|
+
},
|
|
800
829
|
"claude-sonnet-5": {
|
|
801
830
|
kind: "flat",
|
|
802
831
|
inputPerMTok: 2e5,
|
|
@@ -915,17 +944,20 @@ const MODEL_RATES = {
|
|
|
915
944
|
"mistral-large-latest": {
|
|
916
945
|
kind: "flat",
|
|
917
946
|
inputPerMTok: 5e4,
|
|
918
|
-
outputPerMTok: 15e4
|
|
947
|
+
outputPerMTok: 15e4,
|
|
948
|
+
cachedInputPerMTok: 5e3
|
|
919
949
|
},
|
|
920
950
|
"mistral-medium-latest": {
|
|
921
951
|
kind: "flat",
|
|
922
952
|
inputPerMTok: 15e4,
|
|
923
|
-
outputPerMTok: 75e4
|
|
953
|
+
outputPerMTok: 75e4,
|
|
954
|
+
cachedInputPerMTok: 15e3
|
|
924
955
|
},
|
|
925
956
|
"mistral-small-latest": {
|
|
926
957
|
kind: "flat",
|
|
927
958
|
inputPerMTok: 15e3,
|
|
928
|
-
outputPerMTok: 6e4
|
|
959
|
+
outputPerMTok: 6e4,
|
|
960
|
+
cachedInputPerMTok: 1500
|
|
929
961
|
},
|
|
930
962
|
"gemini-2.5-flash": {
|
|
931
963
|
kind: "flat",
|
|
@@ -1253,6 +1285,7 @@ const BYOK_MODEL_OPTIONS = {
|
|
|
1253
1285
|
"gemini-3.1-flash-lite"
|
|
1254
1286
|
],
|
|
1255
1287
|
anthropic: [
|
|
1288
|
+
"claude-sonnet-5-5",
|
|
1256
1289
|
"claude-sonnet-5",
|
|
1257
1290
|
"claude-fable-5-1",
|
|
1258
1291
|
"claude-fable-5",
|
|
@@ -1283,6 +1316,7 @@ const BYOK_MODEL_OPTIONS = {
|
|
|
1283
1316
|
"google/gemini-3.1-pro-preview",
|
|
1284
1317
|
"google/gemini-3.5-flash",
|
|
1285
1318
|
"google/gemini-3.1-flash-lite",
|
|
1319
|
+
"anthropic/claude-sonnet-5.5",
|
|
1286
1320
|
"anthropic/claude-sonnet-5",
|
|
1287
1321
|
"anthropic/claude-opus-5",
|
|
1288
1322
|
"anthropic/claude-opus-4.8",
|
|
@@ -1340,6 +1374,10 @@ const MODEL_DISPLAY_METADATA = {
|
|
|
1340
1374
|
displayName: "Gemini 3.1 Flash Lite",
|
|
1341
1375
|
iconProvider: "google"
|
|
1342
1376
|
},
|
|
1377
|
+
"claude-sonnet-5-5": {
|
|
1378
|
+
displayName: "Claude Sonnet 5.5",
|
|
1379
|
+
iconProvider: "anthropic"
|
|
1380
|
+
},
|
|
1343
1381
|
"claude-sonnet-5": {
|
|
1344
1382
|
displayName: "Claude Sonnet 5",
|
|
1345
1383
|
iconProvider: "anthropic"
|
|
@@ -1476,6 +1514,10 @@ const MODEL_DISPLAY_METADATA = {
|
|
|
1476
1514
|
displayName: "Gemini 3.1 Flash Lite",
|
|
1477
1515
|
iconProvider: "google"
|
|
1478
1516
|
},
|
|
1517
|
+
"anthropic/claude-sonnet-5.5": {
|
|
1518
|
+
displayName: "Claude Sonnet 5.5",
|
|
1519
|
+
iconProvider: "anthropic"
|
|
1520
|
+
},
|
|
1479
1521
|
"anthropic/claude-sonnet-5": {
|
|
1480
1522
|
displayName: "Claude Sonnet 5",
|
|
1481
1523
|
iconProvider: "anthropic"
|
|
@@ -1623,6 +1665,7 @@ const resolveWorkingBYOKModelForRole = ({ provider, modelId, role }) => {
|
|
|
1623
1665
|
* offered above must appear here or it will 400 on the reasoning role.
|
|
1624
1666
|
*/
|
|
1625
1667
|
const ANTHROPIC_ADAPTIVE_THINKING_MODELS = [
|
|
1668
|
+
"claude-sonnet-5-5",
|
|
1626
1669
|
"claude-sonnet-5",
|
|
1627
1670
|
"claude-opus-5",
|
|
1628
1671
|
"claude-sonnet-4-6",
|
|
@@ -1675,6 +1718,7 @@ const FALLBACK_CHAT_MODEL_BY_PROVIDER = {
|
|
|
1675
1718
|
const MODEL_CATALOG_ID_ALIASES = {
|
|
1676
1719
|
"gpt-5.6-sol": "gpt-5.6",
|
|
1677
1720
|
"claude-opus-4.8": "claude-opus-4-8",
|
|
1721
|
+
"claude-sonnet-5.5": "claude-sonnet-5-5",
|
|
1678
1722
|
"claude-sonnet-4.6": "claude-sonnet-4-6"
|
|
1679
1723
|
};
|
|
1680
1724
|
const MODEL_CATALOG_ID_ALIAS_TARGET_BY_ID = MODEL_CATALOG_ID_ALIASES;
|
|
@@ -1731,6 +1775,7 @@ const MODEL_STREAMING_TOOL_USE = {
|
|
|
1731
1775
|
"google/gemini-3.1-pro-preview": "supported",
|
|
1732
1776
|
"google/gemini-3.5-flash": "supported",
|
|
1733
1777
|
"google/gemini-3.1-flash-lite": "supported",
|
|
1778
|
+
"anthropic/claude-sonnet-5.5": "supported",
|
|
1734
1779
|
"anthropic/claude-sonnet-5": "supported",
|
|
1735
1780
|
"anthropic/claude-opus-5": "supported",
|
|
1736
1781
|
"anthropic/claude-opus-4.8": "supported",
|
|
@@ -1748,6 +1793,7 @@ const MODEL_STREAMING_TOOL_USE = {
|
|
|
1748
1793
|
"gpt-5.4-mini": "supported",
|
|
1749
1794
|
"gpt-5.4-nano": "supported",
|
|
1750
1795
|
"gpt-5.2": "supported",
|
|
1796
|
+
"claude-sonnet-5-5": "supported",
|
|
1751
1797
|
"claude-sonnet-5": "supported",
|
|
1752
1798
|
"claude-fable-5-1": "supported",
|
|
1753
1799
|
"claude-fable-5": "supported",
|
|
@@ -1881,6 +1927,7 @@ const CONTEXT_WINDOW_TOKENS = {
|
|
|
1881
1927
|
"claude-haiku-4-5-20251001": 2e5,
|
|
1882
1928
|
"claude-sonnet-4-6": 2e5,
|
|
1883
1929
|
"claude-sonnet-5": 1e6,
|
|
1930
|
+
"claude-sonnet-5-5": 1e6,
|
|
1884
1931
|
"claude-opus-4-6": 2e5,
|
|
1885
1932
|
"claude-opus-4-7": 2e5,
|
|
1886
1933
|
"claude-opus-4-8": 2e5,
|
|
@@ -1900,6 +1947,7 @@ const CONTEXT_WINDOW_TOKENS = {
|
|
|
1900
1947
|
"google/gemini-3.1-pro-preview": 1048576,
|
|
1901
1948
|
"google/gemini-3.5-flash": 1048576,
|
|
1902
1949
|
"google/gemini-3.1-flash-lite": 1048576,
|
|
1950
|
+
"anthropic/claude-sonnet-5.5": 1e6,
|
|
1903
1951
|
"anthropic/claude-sonnet-5": 1e6,
|
|
1904
1952
|
"anthropic/claude-opus-5": 1e6,
|
|
1905
1953
|
"anthropic/claude-opus-4.8": 2e5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/ai-catalog",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Provider-neutral AI model roles, capabilities, and curated model metadata.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"pack:dry-run": "bun pm pack --dry-run",
|
|
42
42
|
"test": "bun test src",
|
|
43
43
|
"typecheck": "bun ../../packages/scripts/src/tsc-native.ts --noEmit",
|
|
44
|
-
"lint": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --type-aware packages/ai-catalog",
|
|
44
|
+
"lint": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --type-aware --type-check packages/ai-catalog",
|
|
45
45
|
"lint:fix": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --type-aware --fix packages/ai-catalog",
|
|
46
46
|
"format": "bun ../../scripts/run-oxfmt.ts .",
|
|
47
47
|
"prepack": "bun run build"
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@stll/typescript-config": "0.0.0",
|
|
54
|
-
"@tanstack/ai-anthropic": "0.
|
|
55
|
-
"@tanstack/ai-bedrock": "0.3.
|
|
56
|
-
"@tanstack/ai-gemini": "0.
|
|
57
|
-
"@tanstack/ai-mistral": "0.6.
|
|
58
|
-
"@tanstack/ai-openrouter": "0.19.
|
|
54
|
+
"@tanstack/ai-anthropic": "0.19.1",
|
|
55
|
+
"@tanstack/ai-bedrock": "0.3.15",
|
|
56
|
+
"@tanstack/ai-gemini": "0.33.1",
|
|
57
|
+
"@tanstack/ai-mistral": "0.6.10",
|
|
58
|
+
"@tanstack/ai-openrouter": "0.19.20",
|
|
59
59
|
"bun-types": "1.4.2",
|
|
60
60
|
"tsdown": "0.23.0"
|
|
61
61
|
},
|