@hebo-ai/gateway 0.4.0-alpha.3 → 0.4.0-alpha.4
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/README.md +2 -2
- package/dist/models/anthropic/presets.d.ts +261 -28
- package/dist/models/anthropic/presets.js +18 -4
- package/dist/models/openai/presets.d.ts +382 -0
- package/dist/models/openai/presets.js +9 -2
- package/dist/models/types.d.ts +1 -1
- package/dist/models/types.js +2 -0
- package/dist/providers/bedrock/canonical.js +1 -0
- package/package.json +1 -1
- package/src/models/anthropic/middleware.test.ts +1 -0
- package/src/models/anthropic/presets.ts +22 -4
- package/src/models/openai/middleware.test.ts +1 -0
- package/src/models/openai/presets.ts +13 -2
- package/src/models/types.ts +2 -0
- package/src/providers/bedrock/canonical.ts +1 -0
package/README.md
CHANGED
|
@@ -209,7 +209,7 @@ Out-of-the-box model presets:
|
|
|
209
209
|
Nova: `nova` (`v1`, `v2`, `v1.x`, `v2.x`, `latest`, `embeddings`, `all`)
|
|
210
210
|
|
|
211
211
|
- **Anthropic** — `@hebo-ai/gateway/models/anthropic`
|
|
212
|
-
Claude: `claude` (`v4.5`, `v4.1`, `v4`, `v3.7`, `v3.5`, `v3`, `v4.x`, `v3.x`, `haiku`, `sonnet`, `opus`, `latest`, `all`)
|
|
212
|
+
Claude: `claude` (`v4.6`, `v4.5`, `v4.1`, `v4`, `v3.7`, `v3.5`, `v3`, `v4.x`, `v3.x`, `haiku`, `sonnet`, `opus`, `latest`, `all`)
|
|
213
213
|
|
|
214
214
|
- **Cohere** — `@hebo-ai/gateway/models/cohere`
|
|
215
215
|
Command: `command` (`A`, `R`, `latest`, `all`)
|
|
@@ -222,7 +222,7 @@ Out-of-the-box model presets:
|
|
|
222
222
|
Llama: `llama` (`v3.1`, `v3.2`, `v3.3`, `v4`, `v3.x`, `v4.x`, `latest`, `all`)
|
|
223
223
|
|
|
224
224
|
- **OpenAI** — `@hebo-ai/gateway/models/openai`
|
|
225
|
-
GPT: `gpt` (`v5`, `v5.1`, `v5.2`, `v5.x`, `chat`, `codex`, `pro`, `latest`, `all`)
|
|
225
|
+
GPT: `gpt` (`v5`, `v5.1`, `v5.2`, `v5.3`, `v5.x`, `chat`, `codex`, `pro`, `latest`, `all`)
|
|
226
226
|
GPT-OSS: `gptOss` (`v1`, `v1.x`, `latest`, `all`)
|
|
227
227
|
Embeddings: `textEmbeddings` (`v3`, `v3.x`, `latest`, `all`)
|
|
228
228
|
|
|
@@ -622,6 +622,84 @@ export declare const claudeOpus45: <const O extends {
|
|
|
622
622
|
context: number;
|
|
623
623
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
624
624
|
} & O>;
|
|
625
|
+
export declare const claudeOpus46: <const O extends {
|
|
626
|
+
name?: string | undefined;
|
|
627
|
+
created?: string | undefined;
|
|
628
|
+
knowledge?: string | undefined;
|
|
629
|
+
modalities?: {
|
|
630
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
631
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
632
|
+
} | undefined;
|
|
633
|
+
context?: number | undefined;
|
|
634
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
635
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
636
|
+
readonly [x: number]: string | undefined;
|
|
637
|
+
toString?: (() => string) | undefined;
|
|
638
|
+
charAt?: {} | undefined;
|
|
639
|
+
charCodeAt?: {} | undefined;
|
|
640
|
+
concat?: {} | undefined;
|
|
641
|
+
indexOf?: {} | undefined;
|
|
642
|
+
lastIndexOf?: {} | undefined;
|
|
643
|
+
localeCompare?: {} | undefined;
|
|
644
|
+
match?: {} | undefined;
|
|
645
|
+
replace?: {} | undefined;
|
|
646
|
+
search?: {} | undefined;
|
|
647
|
+
slice?: {} | undefined;
|
|
648
|
+
split?: {} | undefined;
|
|
649
|
+
substring?: {} | undefined;
|
|
650
|
+
toLowerCase?: (() => string) | undefined;
|
|
651
|
+
toLocaleLowerCase?: {} | undefined;
|
|
652
|
+
toUpperCase?: (() => string) | undefined;
|
|
653
|
+
toLocaleUpperCase?: {} | undefined;
|
|
654
|
+
trim?: (() => string) | undefined;
|
|
655
|
+
readonly length?: number | undefined;
|
|
656
|
+
substr?: {} | undefined;
|
|
657
|
+
valueOf?: (() => string) | undefined;
|
|
658
|
+
codePointAt?: {} | undefined;
|
|
659
|
+
includes?: {} | undefined;
|
|
660
|
+
endsWith?: {} | undefined;
|
|
661
|
+
normalize?: {} | undefined;
|
|
662
|
+
repeat?: {} | undefined;
|
|
663
|
+
startsWith?: {} | undefined;
|
|
664
|
+
anchor?: {} | undefined;
|
|
665
|
+
big?: (() => string) | undefined;
|
|
666
|
+
blink?: (() => string) | undefined;
|
|
667
|
+
bold?: (() => string) | undefined;
|
|
668
|
+
fixed?: (() => string) | undefined;
|
|
669
|
+
fontcolor?: {} | undefined;
|
|
670
|
+
fontsize?: {} | undefined;
|
|
671
|
+
italics?: (() => string) | undefined;
|
|
672
|
+
link?: {} | undefined;
|
|
673
|
+
small?: (() => string) | undefined;
|
|
674
|
+
strike?: (() => string) | undefined;
|
|
675
|
+
sub?: (() => string) | undefined;
|
|
676
|
+
sup?: (() => string) | undefined;
|
|
677
|
+
padStart?: {} | undefined;
|
|
678
|
+
padEnd?: {} | undefined;
|
|
679
|
+
trimEnd?: (() => string) | undefined;
|
|
680
|
+
trimStart?: (() => string) | undefined;
|
|
681
|
+
trimLeft?: (() => string) | undefined;
|
|
682
|
+
trimRight?: (() => string) | undefined;
|
|
683
|
+
matchAll?: {} | undefined;
|
|
684
|
+
replaceAll?: {} | undefined;
|
|
685
|
+
at?: {} | undefined;
|
|
686
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
687
|
+
})[] | undefined;
|
|
688
|
+
additionalProperties?: {
|
|
689
|
+
[x: string]: unknown;
|
|
690
|
+
} | undefined;
|
|
691
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.6", {
|
|
692
|
+
name: string;
|
|
693
|
+
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
694
|
+
created: string;
|
|
695
|
+
knowledge: string;
|
|
696
|
+
modalities: {
|
|
697
|
+
input: readonly ["text", "image", "pdf", "file"];
|
|
698
|
+
output: readonly ["text"];
|
|
699
|
+
};
|
|
700
|
+
context: number;
|
|
701
|
+
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
702
|
+
} & O>;
|
|
625
703
|
export declare const claudeOpus41: <const O extends {
|
|
626
704
|
name?: string | undefined;
|
|
627
705
|
created?: string | undefined;
|
|
@@ -845,7 +923,7 @@ export declare const claude: {
|
|
|
845
923
|
additionalProperties?: {
|
|
846
924
|
[x: string]: unknown;
|
|
847
925
|
} | undefined;
|
|
848
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
926
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.6", {
|
|
849
927
|
name: string;
|
|
850
928
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
851
929
|
created: string;
|
|
@@ -856,7 +934,8 @@ export declare const claude: {
|
|
|
856
934
|
};
|
|
857
935
|
context: number;
|
|
858
936
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
859
|
-
} & O
|
|
937
|
+
} & O>];
|
|
938
|
+
readonly all: ((<const O extends {
|
|
860
939
|
name?: string | undefined;
|
|
861
940
|
created?: string | undefined;
|
|
862
941
|
knowledge?: string | undefined;
|
|
@@ -922,7 +1001,7 @@ export declare const claude: {
|
|
|
922
1001
|
additionalProperties?: {
|
|
923
1002
|
[x: string]: unknown;
|
|
924
1003
|
} | undefined;
|
|
925
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
1004
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-haiku-4.5", {
|
|
926
1005
|
name: string;
|
|
927
1006
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
928
1007
|
created: string;
|
|
@@ -933,7 +1012,7 @@ export declare const claude: {
|
|
|
933
1012
|
};
|
|
934
1013
|
context: number;
|
|
935
1014
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
936
|
-
} & O
|
|
1015
|
+
} & O>) | (<const O extends {
|
|
937
1016
|
name?: string | undefined;
|
|
938
1017
|
created?: string | undefined;
|
|
939
1018
|
knowledge?: string | undefined;
|
|
@@ -999,19 +1078,18 @@ export declare const claude: {
|
|
|
999
1078
|
additionalProperties?: {
|
|
1000
1079
|
[x: string]: unknown;
|
|
1001
1080
|
} | undefined;
|
|
1002
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
1081
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-haiku-3.5", {
|
|
1003
1082
|
name: string;
|
|
1004
|
-
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1005
1083
|
created: string;
|
|
1006
1084
|
knowledge: string;
|
|
1007
1085
|
modalities: {
|
|
1008
1086
|
input: readonly ["text", "image", "pdf", "file"];
|
|
1009
1087
|
output: readonly ["text"];
|
|
1010
1088
|
};
|
|
1089
|
+
capabilities: ("temperature" | "attachments" | "tool_call" | "structured_output")[];
|
|
1011
1090
|
context: number;
|
|
1012
1091
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1013
|
-
} & O>
|
|
1014
|
-
readonly all: ((<const O extends {
|
|
1092
|
+
} & O>) | (<const O extends {
|
|
1015
1093
|
name?: string | undefined;
|
|
1016
1094
|
created?: string | undefined;
|
|
1017
1095
|
knowledge?: string | undefined;
|
|
@@ -1077,15 +1155,15 @@ export declare const claude: {
|
|
|
1077
1155
|
additionalProperties?: {
|
|
1078
1156
|
[x: string]: unknown;
|
|
1079
1157
|
} | undefined;
|
|
1080
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-haiku-
|
|
1158
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-haiku-3", {
|
|
1081
1159
|
name: string;
|
|
1082
|
-
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1083
1160
|
created: string;
|
|
1084
1161
|
knowledge: string;
|
|
1085
1162
|
modalities: {
|
|
1086
|
-
input: readonly ["text", "image", "
|
|
1163
|
+
input: readonly ["text", "image", "file"];
|
|
1087
1164
|
output: readonly ["text"];
|
|
1088
1165
|
};
|
|
1166
|
+
capabilities: ("temperature" | "attachments" | "tool_call" | "structured_output")[];
|
|
1089
1167
|
context: number;
|
|
1090
1168
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1091
1169
|
} & O>) | (<const O extends {
|
|
@@ -1154,15 +1232,15 @@ export declare const claude: {
|
|
|
1154
1232
|
additionalProperties?: {
|
|
1155
1233
|
[x: string]: unknown;
|
|
1156
1234
|
} | undefined;
|
|
1157
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
1235
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-sonnet-4.5", {
|
|
1158
1236
|
name: string;
|
|
1237
|
+
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1159
1238
|
created: string;
|
|
1160
1239
|
knowledge: string;
|
|
1161
1240
|
modalities: {
|
|
1162
1241
|
input: readonly ["text", "image", "pdf", "file"];
|
|
1163
1242
|
output: readonly ["text"];
|
|
1164
1243
|
};
|
|
1165
|
-
capabilities: ("temperature" | "attachments" | "tool_call" | "structured_output")[];
|
|
1166
1244
|
context: number;
|
|
1167
1245
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1168
1246
|
} & O>) | (<const O extends {
|
|
@@ -1231,15 +1309,15 @@ export declare const claude: {
|
|
|
1231
1309
|
additionalProperties?: {
|
|
1232
1310
|
[x: string]: unknown;
|
|
1233
1311
|
} | undefined;
|
|
1234
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
1312
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-sonnet-4", {
|
|
1235
1313
|
name: string;
|
|
1314
|
+
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1236
1315
|
created: string;
|
|
1237
1316
|
knowledge: string;
|
|
1238
1317
|
modalities: {
|
|
1239
|
-
input: readonly ["text", "image", "file"];
|
|
1318
|
+
input: readonly ["text", "image", "pdf", "file"];
|
|
1240
1319
|
output: readonly ["text"];
|
|
1241
1320
|
};
|
|
1242
|
-
capabilities: ("temperature" | "attachments" | "tool_call" | "structured_output")[];
|
|
1243
1321
|
context: number;
|
|
1244
1322
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1245
1323
|
} & O>) | (<const O extends {
|
|
@@ -1308,7 +1386,7 @@ export declare const claude: {
|
|
|
1308
1386
|
additionalProperties?: {
|
|
1309
1387
|
[x: string]: unknown;
|
|
1310
1388
|
} | undefined;
|
|
1311
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-sonnet-
|
|
1389
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-sonnet-3.7", {
|
|
1312
1390
|
name: string;
|
|
1313
1391
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1314
1392
|
created: string;
|
|
@@ -1385,15 +1463,15 @@ export declare const claude: {
|
|
|
1385
1463
|
additionalProperties?: {
|
|
1386
1464
|
[x: string]: unknown;
|
|
1387
1465
|
} | undefined;
|
|
1388
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-sonnet-
|
|
1466
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-sonnet-3.5", {
|
|
1389
1467
|
name: string;
|
|
1390
|
-
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1391
1468
|
created: string;
|
|
1392
1469
|
knowledge: string;
|
|
1393
1470
|
modalities: {
|
|
1394
1471
|
input: readonly ["text", "image", "pdf", "file"];
|
|
1395
1472
|
output: readonly ["text"];
|
|
1396
1473
|
};
|
|
1474
|
+
capabilities: ("temperature" | "attachments" | "tool_call" | "structured_output")[];
|
|
1397
1475
|
context: number;
|
|
1398
1476
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1399
1477
|
} & O>) | (<const O extends {
|
|
@@ -1462,7 +1540,7 @@ export declare const claude: {
|
|
|
1462
1540
|
additionalProperties?: {
|
|
1463
1541
|
[x: string]: unknown;
|
|
1464
1542
|
} | undefined;
|
|
1465
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
1543
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.5", {
|
|
1466
1544
|
name: string;
|
|
1467
1545
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1468
1546
|
created: string;
|
|
@@ -1539,15 +1617,15 @@ export declare const claude: {
|
|
|
1539
1617
|
additionalProperties?: {
|
|
1540
1618
|
[x: string]: unknown;
|
|
1541
1619
|
} | undefined;
|
|
1542
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-
|
|
1620
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.6", {
|
|
1543
1621
|
name: string;
|
|
1622
|
+
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1544
1623
|
created: string;
|
|
1545
1624
|
knowledge: string;
|
|
1546
1625
|
modalities: {
|
|
1547
1626
|
input: readonly ["text", "image", "pdf", "file"];
|
|
1548
1627
|
output: readonly ["text"];
|
|
1549
1628
|
};
|
|
1550
|
-
capabilities: ("temperature" | "attachments" | "tool_call" | "structured_output")[];
|
|
1551
1629
|
context: number;
|
|
1552
1630
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1553
1631
|
} & O>) | (<const O extends {
|
|
@@ -1616,7 +1694,7 @@ export declare const claude: {
|
|
|
1616
1694
|
additionalProperties?: {
|
|
1617
1695
|
[x: string]: unknown;
|
|
1618
1696
|
} | undefined;
|
|
1619
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.
|
|
1697
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.1", {
|
|
1620
1698
|
name: string;
|
|
1621
1699
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1622
1700
|
created: string;
|
|
@@ -1693,7 +1771,7 @@ export declare const claude: {
|
|
|
1693
1771
|
additionalProperties?: {
|
|
1694
1772
|
[x: string]: unknown;
|
|
1695
1773
|
} | undefined;
|
|
1696
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4
|
|
1774
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4", {
|
|
1697
1775
|
name: string;
|
|
1698
1776
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1699
1777
|
created: string;
|
|
@@ -1704,7 +1782,8 @@ export declare const claude: {
|
|
|
1704
1782
|
};
|
|
1705
1783
|
context: number;
|
|
1706
1784
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1707
|
-
} & O>)
|
|
1785
|
+
} & O>))[];
|
|
1786
|
+
readonly "v4.x": readonly [<const O extends {
|
|
1708
1787
|
name?: string | undefined;
|
|
1709
1788
|
created?: string | undefined;
|
|
1710
1789
|
knowledge?: string | undefined;
|
|
@@ -1770,7 +1849,7 @@ export declare const claude: {
|
|
|
1770
1849
|
additionalProperties?: {
|
|
1771
1850
|
[x: string]: unknown;
|
|
1772
1851
|
} | undefined;
|
|
1773
|
-
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4", {
|
|
1852
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.6", {
|
|
1774
1853
|
name: string;
|
|
1775
1854
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
1776
1855
|
created: string;
|
|
@@ -1781,8 +1860,7 @@ export declare const claude: {
|
|
|
1781
1860
|
};
|
|
1782
1861
|
context: number;
|
|
1783
1862
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
1784
|
-
} & O
|
|
1785
|
-
readonly "v4.x": readonly [<const O extends {
|
|
1863
|
+
} & O>, <const O extends {
|
|
1786
1864
|
name?: string | undefined;
|
|
1787
1865
|
created?: string | undefined;
|
|
1788
1866
|
knowledge?: string | undefined;
|
|
@@ -2554,6 +2632,84 @@ export declare const claude: {
|
|
|
2554
2632
|
context: number;
|
|
2555
2633
|
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
2556
2634
|
} & O>];
|
|
2635
|
+
readonly "v4.6": readonly [<const O extends {
|
|
2636
|
+
name?: string | undefined;
|
|
2637
|
+
created?: string | undefined;
|
|
2638
|
+
knowledge?: string | undefined;
|
|
2639
|
+
modalities?: {
|
|
2640
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
2641
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
2642
|
+
} | undefined;
|
|
2643
|
+
context?: number | undefined;
|
|
2644
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
2645
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
2646
|
+
readonly [x: number]: string | undefined;
|
|
2647
|
+
toString?: (() => string) | undefined;
|
|
2648
|
+
charAt?: {} | undefined;
|
|
2649
|
+
charCodeAt?: {} | undefined;
|
|
2650
|
+
concat?: {} | undefined;
|
|
2651
|
+
indexOf?: {} | undefined;
|
|
2652
|
+
lastIndexOf?: {} | undefined;
|
|
2653
|
+
localeCompare?: {} | undefined;
|
|
2654
|
+
match?: {} | undefined;
|
|
2655
|
+
replace?: {} | undefined;
|
|
2656
|
+
search?: {} | undefined;
|
|
2657
|
+
slice?: {} | undefined;
|
|
2658
|
+
split?: {} | undefined;
|
|
2659
|
+
substring?: {} | undefined;
|
|
2660
|
+
toLowerCase?: (() => string) | undefined;
|
|
2661
|
+
toLocaleLowerCase?: {} | undefined;
|
|
2662
|
+
toUpperCase?: (() => string) | undefined;
|
|
2663
|
+
toLocaleUpperCase?: {} | undefined;
|
|
2664
|
+
trim?: (() => string) | undefined;
|
|
2665
|
+
readonly length?: number | undefined;
|
|
2666
|
+
substr?: {} | undefined;
|
|
2667
|
+
valueOf?: (() => string) | undefined;
|
|
2668
|
+
codePointAt?: {} | undefined;
|
|
2669
|
+
includes?: {} | undefined;
|
|
2670
|
+
endsWith?: {} | undefined;
|
|
2671
|
+
normalize?: {} | undefined;
|
|
2672
|
+
repeat?: {} | undefined;
|
|
2673
|
+
startsWith?: {} | undefined;
|
|
2674
|
+
anchor?: {} | undefined;
|
|
2675
|
+
big?: (() => string) | undefined;
|
|
2676
|
+
blink?: (() => string) | undefined;
|
|
2677
|
+
bold?: (() => string) | undefined;
|
|
2678
|
+
fixed?: (() => string) | undefined;
|
|
2679
|
+
fontcolor?: {} | undefined;
|
|
2680
|
+
fontsize?: {} | undefined;
|
|
2681
|
+
italics?: (() => string) | undefined;
|
|
2682
|
+
link?: {} | undefined;
|
|
2683
|
+
small?: (() => string) | undefined;
|
|
2684
|
+
strike?: (() => string) | undefined;
|
|
2685
|
+
sub?: (() => string) | undefined;
|
|
2686
|
+
sup?: (() => string) | undefined;
|
|
2687
|
+
padStart?: {} | undefined;
|
|
2688
|
+
padEnd?: {} | undefined;
|
|
2689
|
+
trimEnd?: (() => string) | undefined;
|
|
2690
|
+
trimStart?: (() => string) | undefined;
|
|
2691
|
+
trimLeft?: (() => string) | undefined;
|
|
2692
|
+
trimRight?: (() => string) | undefined;
|
|
2693
|
+
matchAll?: {} | undefined;
|
|
2694
|
+
replaceAll?: {} | undefined;
|
|
2695
|
+
at?: {} | undefined;
|
|
2696
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
2697
|
+
})[] | undefined;
|
|
2698
|
+
additionalProperties?: {
|
|
2699
|
+
[x: string]: unknown;
|
|
2700
|
+
} | undefined;
|
|
2701
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.6", {
|
|
2702
|
+
name: string;
|
|
2703
|
+
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
2704
|
+
created: string;
|
|
2705
|
+
knowledge: string;
|
|
2706
|
+
modalities: {
|
|
2707
|
+
input: readonly ["text", "image", "pdf", "file"];
|
|
2708
|
+
output: readonly ["text"];
|
|
2709
|
+
};
|
|
2710
|
+
context: number;
|
|
2711
|
+
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
2712
|
+
} & O>];
|
|
2557
2713
|
readonly "v4.5": readonly [<const O extends {
|
|
2558
2714
|
name?: string | undefined;
|
|
2559
2715
|
created?: string | undefined;
|
|
@@ -3937,6 +4093,83 @@ export declare const claude: {
|
|
|
3937
4093
|
additionalProperties?: {
|
|
3938
4094
|
[x: string]: unknown;
|
|
3939
4095
|
} | undefined;
|
|
4096
|
+
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.6", {
|
|
4097
|
+
name: string;
|
|
4098
|
+
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
4099
|
+
created: string;
|
|
4100
|
+
knowledge: string;
|
|
4101
|
+
modalities: {
|
|
4102
|
+
input: readonly ["text", "image", "pdf", "file"];
|
|
4103
|
+
output: readonly ["text"];
|
|
4104
|
+
};
|
|
4105
|
+
context: number;
|
|
4106
|
+
providers: readonly ["anthropic", "bedrock", "vertex"];
|
|
4107
|
+
} & O>, <const O extends {
|
|
4108
|
+
name?: string | undefined;
|
|
4109
|
+
created?: string | undefined;
|
|
4110
|
+
knowledge?: string | undefined;
|
|
4111
|
+
modalities?: {
|
|
4112
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
4113
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
4114
|
+
} | undefined;
|
|
4115
|
+
context?: number | undefined;
|
|
4116
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
4117
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
4118
|
+
readonly [x: number]: string | undefined;
|
|
4119
|
+
toString?: (() => string) | undefined;
|
|
4120
|
+
charAt?: {} | undefined;
|
|
4121
|
+
charCodeAt?: {} | undefined;
|
|
4122
|
+
concat?: {} | undefined;
|
|
4123
|
+
indexOf?: {} | undefined;
|
|
4124
|
+
lastIndexOf?: {} | undefined;
|
|
4125
|
+
localeCompare?: {} | undefined;
|
|
4126
|
+
match?: {} | undefined;
|
|
4127
|
+
replace?: {} | undefined;
|
|
4128
|
+
search?: {} | undefined;
|
|
4129
|
+
slice?: {} | undefined;
|
|
4130
|
+
split?: {} | undefined;
|
|
4131
|
+
substring?: {} | undefined;
|
|
4132
|
+
toLowerCase?: (() => string) | undefined;
|
|
4133
|
+
toLocaleLowerCase?: {} | undefined;
|
|
4134
|
+
toUpperCase?: (() => string) | undefined;
|
|
4135
|
+
toLocaleUpperCase?: {} | undefined;
|
|
4136
|
+
trim?: (() => string) | undefined;
|
|
4137
|
+
readonly length?: number | undefined;
|
|
4138
|
+
substr?: {} | undefined;
|
|
4139
|
+
valueOf?: (() => string) | undefined;
|
|
4140
|
+
codePointAt?: {} | undefined;
|
|
4141
|
+
includes?: {} | undefined;
|
|
4142
|
+
endsWith?: {} | undefined;
|
|
4143
|
+
normalize?: {} | undefined;
|
|
4144
|
+
repeat?: {} | undefined;
|
|
4145
|
+
startsWith?: {} | undefined;
|
|
4146
|
+
anchor?: {} | undefined;
|
|
4147
|
+
big?: (() => string) | undefined;
|
|
4148
|
+
blink?: (() => string) | undefined;
|
|
4149
|
+
bold?: (() => string) | undefined;
|
|
4150
|
+
fixed?: (() => string) | undefined;
|
|
4151
|
+
fontcolor?: {} | undefined;
|
|
4152
|
+
fontsize?: {} | undefined;
|
|
4153
|
+
italics?: (() => string) | undefined;
|
|
4154
|
+
link?: {} | undefined;
|
|
4155
|
+
small?: (() => string) | undefined;
|
|
4156
|
+
strike?: (() => string) | undefined;
|
|
4157
|
+
sub?: (() => string) | undefined;
|
|
4158
|
+
sup?: (() => string) | undefined;
|
|
4159
|
+
padStart?: {} | undefined;
|
|
4160
|
+
padEnd?: {} | undefined;
|
|
4161
|
+
trimEnd?: (() => string) | undefined;
|
|
4162
|
+
trimStart?: (() => string) | undefined;
|
|
4163
|
+
trimLeft?: (() => string) | undefined;
|
|
4164
|
+
trimRight?: (() => string) | undefined;
|
|
4165
|
+
matchAll?: {} | undefined;
|
|
4166
|
+
replaceAll?: {} | undefined;
|
|
4167
|
+
at?: {} | undefined;
|
|
4168
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
4169
|
+
})[] | undefined;
|
|
4170
|
+
additionalProperties?: {
|
|
4171
|
+
[x: string]: unknown;
|
|
4172
|
+
} | undefined;
|
|
3940
4173
|
}>(override?: O | undefined) => Record<"anthropic/claude-opus-4.5", {
|
|
3941
4174
|
name: string;
|
|
3942
4175
|
capabilities: ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[];
|
|
@@ -72,7 +72,15 @@ export const claudeOpus45 = presetFor()("anthropic/claude-opus-4.5", {
|
|
|
72
72
|
name: "Claude Opus 4.5",
|
|
73
73
|
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
74
74
|
created: "2025-11-01",
|
|
75
|
-
knowledge: "2025-
|
|
75
|
+
knowledge: "2025-05",
|
|
76
|
+
});
|
|
77
|
+
export const claudeOpus46 = presetFor()("anthropic/claude-opus-4.6", {
|
|
78
|
+
...CLAUDE_BASE,
|
|
79
|
+
...CLAUDE_PDF_MODALITIES,
|
|
80
|
+
name: "Claude Opus 4.6",
|
|
81
|
+
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
82
|
+
created: "2026-02-05",
|
|
83
|
+
knowledge: "2025-05",
|
|
76
84
|
});
|
|
77
85
|
export const claudeOpus41 = presetFor()("anthropic/claude-opus-4.1", {
|
|
78
86
|
...CLAUDE_BASE,
|
|
@@ -91,6 +99,7 @@ export const claudeOpus4 = presetFor()("anthropic/claude-opus-4", {
|
|
|
91
99
|
knowledge: "2025-03",
|
|
92
100
|
});
|
|
93
101
|
const claudeAtomic = {
|
|
102
|
+
"v4.6": [claudeOpus46],
|
|
94
103
|
"v4.5": [claudeHaiku45, claudeSonnet45, claudeOpus45],
|
|
95
104
|
"v4.1": [claudeOpus41],
|
|
96
105
|
v4: [claudeSonnet4, claudeOpus4],
|
|
@@ -99,15 +108,20 @@ const claudeAtomic = {
|
|
|
99
108
|
v3: [claudeHaiku3],
|
|
100
109
|
haiku: [claudeHaiku45, claudeHaiku35, claudeHaiku3],
|
|
101
110
|
sonnet: [claudeSonnet45, claudeSonnet4, claudeSonnet37, claudeSonnet35],
|
|
102
|
-
opus: [claudeOpus45, claudeOpus41, claudeOpus4],
|
|
111
|
+
opus: [claudeOpus46, claudeOpus45, claudeOpus41, claudeOpus4],
|
|
103
112
|
};
|
|
104
113
|
const claudeGroups = {
|
|
105
|
-
"v4.x": [
|
|
114
|
+
"v4.x": [
|
|
115
|
+
...claudeAtomic["v4.6"],
|
|
116
|
+
...claudeAtomic["v4.5"],
|
|
117
|
+
...claudeAtomic["v4.1"],
|
|
118
|
+
...claudeAtomic["v4"],
|
|
119
|
+
],
|
|
106
120
|
"v3.x": [...claudeAtomic["v3.7"], ...claudeAtomic["v3.5"], ...claudeAtomic["v3"]],
|
|
107
121
|
};
|
|
108
122
|
export const claude = {
|
|
109
123
|
...claudeAtomic,
|
|
110
124
|
...claudeGroups,
|
|
111
|
-
latest: [...claudeAtomic["v4.
|
|
125
|
+
latest: [...claudeAtomic["v4.6"]],
|
|
112
126
|
all: Object.values(claudeAtomic).flat(),
|
|
113
127
|
};
|
|
@@ -1011,6 +1011,83 @@ export declare const gpt52Codex: <const O extends {
|
|
|
1011
1011
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1012
1012
|
providers: readonly ["openai", "azure"];
|
|
1013
1013
|
} & O>;
|
|
1014
|
+
export declare const gpt53Codex: <const O extends {
|
|
1015
|
+
name?: string | undefined;
|
|
1016
|
+
created?: string | undefined;
|
|
1017
|
+
knowledge?: string | undefined;
|
|
1018
|
+
modalities?: {
|
|
1019
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
1020
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
1021
|
+
} | undefined;
|
|
1022
|
+
context?: number | undefined;
|
|
1023
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
1024
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
1025
|
+
readonly [x: number]: string | undefined;
|
|
1026
|
+
toString?: (() => string) | undefined;
|
|
1027
|
+
charAt?: {} | undefined;
|
|
1028
|
+
charCodeAt?: {} | undefined;
|
|
1029
|
+
concat?: {} | undefined;
|
|
1030
|
+
indexOf?: {} | undefined;
|
|
1031
|
+
lastIndexOf?: {} | undefined;
|
|
1032
|
+
localeCompare?: {} | undefined;
|
|
1033
|
+
match?: {} | undefined;
|
|
1034
|
+
replace?: {} | undefined;
|
|
1035
|
+
search?: {} | undefined;
|
|
1036
|
+
slice?: {} | undefined;
|
|
1037
|
+
split?: {} | undefined;
|
|
1038
|
+
substring?: {} | undefined;
|
|
1039
|
+
toLowerCase?: (() => string) | undefined;
|
|
1040
|
+
toLocaleLowerCase?: {} | undefined;
|
|
1041
|
+
toUpperCase?: (() => string) | undefined;
|
|
1042
|
+
toLocaleUpperCase?: {} | undefined;
|
|
1043
|
+
trim?: (() => string) | undefined;
|
|
1044
|
+
readonly length?: number | undefined;
|
|
1045
|
+
substr?: {} | undefined;
|
|
1046
|
+
valueOf?: (() => string) | undefined;
|
|
1047
|
+
codePointAt?: {} | undefined;
|
|
1048
|
+
includes?: {} | undefined;
|
|
1049
|
+
endsWith?: {} | undefined;
|
|
1050
|
+
normalize?: {} | undefined;
|
|
1051
|
+
repeat?: {} | undefined;
|
|
1052
|
+
startsWith?: {} | undefined;
|
|
1053
|
+
anchor?: {} | undefined;
|
|
1054
|
+
big?: (() => string) | undefined;
|
|
1055
|
+
blink?: (() => string) | undefined;
|
|
1056
|
+
bold?: (() => string) | undefined;
|
|
1057
|
+
fixed?: (() => string) | undefined;
|
|
1058
|
+
fontcolor?: {} | undefined;
|
|
1059
|
+
fontsize?: {} | undefined;
|
|
1060
|
+
italics?: (() => string) | undefined;
|
|
1061
|
+
link?: {} | undefined;
|
|
1062
|
+
small?: (() => string) | undefined;
|
|
1063
|
+
strike?: (() => string) | undefined;
|
|
1064
|
+
sub?: (() => string) | undefined;
|
|
1065
|
+
sup?: (() => string) | undefined;
|
|
1066
|
+
padStart?: {} | undefined;
|
|
1067
|
+
padEnd?: {} | undefined;
|
|
1068
|
+
trimEnd?: (() => string) | undefined;
|
|
1069
|
+
trimStart?: (() => string) | undefined;
|
|
1070
|
+
trimLeft?: (() => string) | undefined;
|
|
1071
|
+
trimRight?: (() => string) | undefined;
|
|
1072
|
+
matchAll?: {} | undefined;
|
|
1073
|
+
replaceAll?: {} | undefined;
|
|
1074
|
+
at?: {} | undefined;
|
|
1075
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
1076
|
+
})[] | undefined;
|
|
1077
|
+
additionalProperties?: {
|
|
1078
|
+
[x: string]: unknown;
|
|
1079
|
+
} | undefined;
|
|
1080
|
+
}>(override?: O | undefined) => Record<"openai/gpt-5.3-codex", {
|
|
1081
|
+
name: string;
|
|
1082
|
+
created: string;
|
|
1083
|
+
knowledge: string;
|
|
1084
|
+
modalities: {
|
|
1085
|
+
input: readonly ["text", "image"];
|
|
1086
|
+
output: readonly ["text"];
|
|
1087
|
+
};
|
|
1088
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
1089
|
+
providers: readonly ["openai", "azure"];
|
|
1090
|
+
} & O>;
|
|
1014
1091
|
export declare const textEmbedding3Small: <const O extends {
|
|
1015
1092
|
name?: string | undefined;
|
|
1016
1093
|
created?: string | undefined;
|
|
@@ -3174,6 +3251,82 @@ export declare const gpt: {
|
|
|
3174
3251
|
};
|
|
3175
3252
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
3176
3253
|
providers: readonly ["openai", "azure"];
|
|
3254
|
+
} & O>) | (<const O extends {
|
|
3255
|
+
name?: string | undefined;
|
|
3256
|
+
created?: string | undefined;
|
|
3257
|
+
knowledge?: string | undefined;
|
|
3258
|
+
modalities?: {
|
|
3259
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
3260
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
3261
|
+
} | undefined;
|
|
3262
|
+
context?: number | undefined;
|
|
3263
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
3264
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
3265
|
+
readonly [x: number]: string | undefined;
|
|
3266
|
+
toString?: (() => string) | undefined;
|
|
3267
|
+
charAt?: {} | undefined;
|
|
3268
|
+
charCodeAt?: {} | undefined;
|
|
3269
|
+
concat?: {} | undefined;
|
|
3270
|
+
indexOf?: {} | undefined;
|
|
3271
|
+
lastIndexOf?: {} | undefined;
|
|
3272
|
+
localeCompare?: {} | undefined;
|
|
3273
|
+
match?: {} | undefined;
|
|
3274
|
+
replace?: {} | undefined;
|
|
3275
|
+
search?: {} | undefined;
|
|
3276
|
+
slice?: {} | undefined;
|
|
3277
|
+
split?: {} | undefined;
|
|
3278
|
+
substring?: {} | undefined;
|
|
3279
|
+
toLowerCase?: (() => string) | undefined;
|
|
3280
|
+
toLocaleLowerCase?: {} | undefined;
|
|
3281
|
+
toUpperCase?: (() => string) | undefined;
|
|
3282
|
+
toLocaleUpperCase?: {} | undefined;
|
|
3283
|
+
trim?: (() => string) | undefined;
|
|
3284
|
+
readonly length?: number | undefined;
|
|
3285
|
+
substr?: {} | undefined;
|
|
3286
|
+
valueOf?: (() => string) | undefined;
|
|
3287
|
+
codePointAt?: {} | undefined;
|
|
3288
|
+
includes?: {} | undefined;
|
|
3289
|
+
endsWith?: {} | undefined;
|
|
3290
|
+
normalize?: {} | undefined;
|
|
3291
|
+
repeat?: {} | undefined;
|
|
3292
|
+
startsWith?: {} | undefined;
|
|
3293
|
+
anchor?: {} | undefined;
|
|
3294
|
+
big?: (() => string) | undefined;
|
|
3295
|
+
blink?: (() => string) | undefined;
|
|
3296
|
+
bold?: (() => string) | undefined;
|
|
3297
|
+
fixed?: (() => string) | undefined;
|
|
3298
|
+
fontcolor?: {} | undefined;
|
|
3299
|
+
fontsize?: {} | undefined;
|
|
3300
|
+
italics?: (() => string) | undefined;
|
|
3301
|
+
link?: {} | undefined;
|
|
3302
|
+
small?: (() => string) | undefined;
|
|
3303
|
+
strike?: (() => string) | undefined;
|
|
3304
|
+
sub?: (() => string) | undefined;
|
|
3305
|
+
sup?: (() => string) | undefined;
|
|
3306
|
+
padStart?: {} | undefined;
|
|
3307
|
+
padEnd?: {} | undefined;
|
|
3308
|
+
trimEnd?: (() => string) | undefined;
|
|
3309
|
+
trimStart?: (() => string) | undefined;
|
|
3310
|
+
trimLeft?: (() => string) | undefined;
|
|
3311
|
+
trimRight?: (() => string) | undefined;
|
|
3312
|
+
matchAll?: {} | undefined;
|
|
3313
|
+
replaceAll?: {} | undefined;
|
|
3314
|
+
at?: {} | undefined;
|
|
3315
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
3316
|
+
})[] | undefined;
|
|
3317
|
+
additionalProperties?: {
|
|
3318
|
+
[x: string]: unknown;
|
|
3319
|
+
} | undefined;
|
|
3320
|
+
}>(override?: O | undefined) => Record<"openai/gpt-5.3-codex", {
|
|
3321
|
+
name: string;
|
|
3322
|
+
created: string;
|
|
3323
|
+
knowledge: string;
|
|
3324
|
+
modalities: {
|
|
3325
|
+
input: readonly ["text", "image"];
|
|
3326
|
+
output: readonly ["text"];
|
|
3327
|
+
};
|
|
3328
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
3329
|
+
providers: readonly ["openai", "azure"];
|
|
3177
3330
|
} & O>))[];
|
|
3178
3331
|
readonly "v5.x": readonly [<const O extends {
|
|
3179
3332
|
name?: string | undefined;
|
|
@@ -4098,6 +4251,82 @@ export declare const gpt: {
|
|
|
4098
4251
|
};
|
|
4099
4252
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
4100
4253
|
providers: readonly ["openai", "azure"];
|
|
4254
|
+
} & O>, <const O extends {
|
|
4255
|
+
name?: string | undefined;
|
|
4256
|
+
created?: string | undefined;
|
|
4257
|
+
knowledge?: string | undefined;
|
|
4258
|
+
modalities?: {
|
|
4259
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
4260
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
4261
|
+
} | undefined;
|
|
4262
|
+
context?: number | undefined;
|
|
4263
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
4264
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
4265
|
+
readonly [x: number]: string | undefined;
|
|
4266
|
+
toString?: (() => string) | undefined;
|
|
4267
|
+
charAt?: {} | undefined;
|
|
4268
|
+
charCodeAt?: {} | undefined;
|
|
4269
|
+
concat?: {} | undefined;
|
|
4270
|
+
indexOf?: {} | undefined;
|
|
4271
|
+
lastIndexOf?: {} | undefined;
|
|
4272
|
+
localeCompare?: {} | undefined;
|
|
4273
|
+
match?: {} | undefined;
|
|
4274
|
+
replace?: {} | undefined;
|
|
4275
|
+
search?: {} | undefined;
|
|
4276
|
+
slice?: {} | undefined;
|
|
4277
|
+
split?: {} | undefined;
|
|
4278
|
+
substring?: {} | undefined;
|
|
4279
|
+
toLowerCase?: (() => string) | undefined;
|
|
4280
|
+
toLocaleLowerCase?: {} | undefined;
|
|
4281
|
+
toUpperCase?: (() => string) | undefined;
|
|
4282
|
+
toLocaleUpperCase?: {} | undefined;
|
|
4283
|
+
trim?: (() => string) | undefined;
|
|
4284
|
+
readonly length?: number | undefined;
|
|
4285
|
+
substr?: {} | undefined;
|
|
4286
|
+
valueOf?: (() => string) | undefined;
|
|
4287
|
+
codePointAt?: {} | undefined;
|
|
4288
|
+
includes?: {} | undefined;
|
|
4289
|
+
endsWith?: {} | undefined;
|
|
4290
|
+
normalize?: {} | undefined;
|
|
4291
|
+
repeat?: {} | undefined;
|
|
4292
|
+
startsWith?: {} | undefined;
|
|
4293
|
+
anchor?: {} | undefined;
|
|
4294
|
+
big?: (() => string) | undefined;
|
|
4295
|
+
blink?: (() => string) | undefined;
|
|
4296
|
+
bold?: (() => string) | undefined;
|
|
4297
|
+
fixed?: (() => string) | undefined;
|
|
4298
|
+
fontcolor?: {} | undefined;
|
|
4299
|
+
fontsize?: {} | undefined;
|
|
4300
|
+
italics?: (() => string) | undefined;
|
|
4301
|
+
link?: {} | undefined;
|
|
4302
|
+
small?: (() => string) | undefined;
|
|
4303
|
+
strike?: (() => string) | undefined;
|
|
4304
|
+
sub?: (() => string) | undefined;
|
|
4305
|
+
sup?: (() => string) | undefined;
|
|
4306
|
+
padStart?: {} | undefined;
|
|
4307
|
+
padEnd?: {} | undefined;
|
|
4308
|
+
trimEnd?: (() => string) | undefined;
|
|
4309
|
+
trimStart?: (() => string) | undefined;
|
|
4310
|
+
trimLeft?: (() => string) | undefined;
|
|
4311
|
+
trimRight?: (() => string) | undefined;
|
|
4312
|
+
matchAll?: {} | undefined;
|
|
4313
|
+
replaceAll?: {} | undefined;
|
|
4314
|
+
at?: {} | undefined;
|
|
4315
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
4316
|
+
})[] | undefined;
|
|
4317
|
+
additionalProperties?: {
|
|
4318
|
+
[x: string]: unknown;
|
|
4319
|
+
} | undefined;
|
|
4320
|
+
}>(override?: O | undefined) => Record<"openai/gpt-5.3-codex", {
|
|
4321
|
+
name: string;
|
|
4322
|
+
created: string;
|
|
4323
|
+
knowledge: string;
|
|
4324
|
+
modalities: {
|
|
4325
|
+
input: readonly ["text", "image"];
|
|
4326
|
+
output: readonly ["text"];
|
|
4327
|
+
};
|
|
4328
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
4329
|
+
providers: readonly ["openai", "azure"];
|
|
4101
4330
|
} & O>];
|
|
4102
4331
|
readonly v5: readonly [<const O extends {
|
|
4103
4332
|
name?: string | undefined;
|
|
@@ -5025,6 +5254,83 @@ export declare const gpt: {
|
|
|
5025
5254
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
5026
5255
|
providers: readonly ["openai", "azure"];
|
|
5027
5256
|
} & O>];
|
|
5257
|
+
readonly "v5.3": readonly [<const O extends {
|
|
5258
|
+
name?: string | undefined;
|
|
5259
|
+
created?: string | undefined;
|
|
5260
|
+
knowledge?: string | undefined;
|
|
5261
|
+
modalities?: {
|
|
5262
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
5263
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
5264
|
+
} | undefined;
|
|
5265
|
+
context?: number | undefined;
|
|
5266
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
5267
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
5268
|
+
readonly [x: number]: string | undefined;
|
|
5269
|
+
toString?: (() => string) | undefined;
|
|
5270
|
+
charAt?: {} | undefined;
|
|
5271
|
+
charCodeAt?: {} | undefined;
|
|
5272
|
+
concat?: {} | undefined;
|
|
5273
|
+
indexOf?: {} | undefined;
|
|
5274
|
+
lastIndexOf?: {} | undefined;
|
|
5275
|
+
localeCompare?: {} | undefined;
|
|
5276
|
+
match?: {} | undefined;
|
|
5277
|
+
replace?: {} | undefined;
|
|
5278
|
+
search?: {} | undefined;
|
|
5279
|
+
slice?: {} | undefined;
|
|
5280
|
+
split?: {} | undefined;
|
|
5281
|
+
substring?: {} | undefined;
|
|
5282
|
+
toLowerCase?: (() => string) | undefined;
|
|
5283
|
+
toLocaleLowerCase?: {} | undefined;
|
|
5284
|
+
toUpperCase?: (() => string) | undefined;
|
|
5285
|
+
toLocaleUpperCase?: {} | undefined;
|
|
5286
|
+
trim?: (() => string) | undefined;
|
|
5287
|
+
readonly length?: number | undefined;
|
|
5288
|
+
substr?: {} | undefined;
|
|
5289
|
+
valueOf?: (() => string) | undefined;
|
|
5290
|
+
codePointAt?: {} | undefined;
|
|
5291
|
+
includes?: {} | undefined;
|
|
5292
|
+
endsWith?: {} | undefined;
|
|
5293
|
+
normalize?: {} | undefined;
|
|
5294
|
+
repeat?: {} | undefined;
|
|
5295
|
+
startsWith?: {} | undefined;
|
|
5296
|
+
anchor?: {} | undefined;
|
|
5297
|
+
big?: (() => string) | undefined;
|
|
5298
|
+
blink?: (() => string) | undefined;
|
|
5299
|
+
bold?: (() => string) | undefined;
|
|
5300
|
+
fixed?: (() => string) | undefined;
|
|
5301
|
+
fontcolor?: {} | undefined;
|
|
5302
|
+
fontsize?: {} | undefined;
|
|
5303
|
+
italics?: (() => string) | undefined;
|
|
5304
|
+
link?: {} | undefined;
|
|
5305
|
+
small?: (() => string) | undefined;
|
|
5306
|
+
strike?: (() => string) | undefined;
|
|
5307
|
+
sub?: (() => string) | undefined;
|
|
5308
|
+
sup?: (() => string) | undefined;
|
|
5309
|
+
padStart?: {} | undefined;
|
|
5310
|
+
padEnd?: {} | undefined;
|
|
5311
|
+
trimEnd?: (() => string) | undefined;
|
|
5312
|
+
trimStart?: (() => string) | undefined;
|
|
5313
|
+
trimLeft?: (() => string) | undefined;
|
|
5314
|
+
trimRight?: (() => string) | undefined;
|
|
5315
|
+
matchAll?: {} | undefined;
|
|
5316
|
+
replaceAll?: {} | undefined;
|
|
5317
|
+
at?: {} | undefined;
|
|
5318
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
5319
|
+
})[] | undefined;
|
|
5320
|
+
additionalProperties?: {
|
|
5321
|
+
[x: string]: unknown;
|
|
5322
|
+
} | undefined;
|
|
5323
|
+
}>(override?: O | undefined) => Record<"openai/gpt-5.3-codex", {
|
|
5324
|
+
name: string;
|
|
5325
|
+
created: string;
|
|
5326
|
+
knowledge: string;
|
|
5327
|
+
modalities: {
|
|
5328
|
+
input: readonly ["text", "image"];
|
|
5329
|
+
output: readonly ["text"];
|
|
5330
|
+
};
|
|
5331
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
5332
|
+
providers: readonly ["openai", "azure"];
|
|
5333
|
+
} & O>];
|
|
5028
5334
|
readonly codex: readonly [<const O extends {
|
|
5029
5335
|
name?: string | undefined;
|
|
5030
5336
|
created?: string | undefined;
|
|
@@ -5332,6 +5638,82 @@ export declare const gpt: {
|
|
|
5332
5638
|
};
|
|
5333
5639
|
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
5334
5640
|
providers: readonly ["openai", "azure"];
|
|
5641
|
+
} & O>, <const O extends {
|
|
5642
|
+
name?: string | undefined;
|
|
5643
|
+
created?: string | undefined;
|
|
5644
|
+
knowledge?: string | undefined;
|
|
5645
|
+
modalities?: {
|
|
5646
|
+
input?: readonly ("text" | "file" | "image" | "audio" | "video" | "pdf")[] | undefined;
|
|
5647
|
+
output?: readonly ("text" | "image" | "audio" | "video" | "embeddings")[] | undefined;
|
|
5648
|
+
} | undefined;
|
|
5649
|
+
context?: number | undefined;
|
|
5650
|
+
capabilities?: readonly ("temperature" | "reasoning" | "attachments" | "tool_call" | "structured_output")[] | undefined;
|
|
5651
|
+
providers?: readonly ("anthropic" | "azure" | "bedrock" | "cohere" | "groq" | "openai" | "vertex" | "voyage" | {
|
|
5652
|
+
readonly [x: number]: string | undefined;
|
|
5653
|
+
toString?: (() => string) | undefined;
|
|
5654
|
+
charAt?: {} | undefined;
|
|
5655
|
+
charCodeAt?: {} | undefined;
|
|
5656
|
+
concat?: {} | undefined;
|
|
5657
|
+
indexOf?: {} | undefined;
|
|
5658
|
+
lastIndexOf?: {} | undefined;
|
|
5659
|
+
localeCompare?: {} | undefined;
|
|
5660
|
+
match?: {} | undefined;
|
|
5661
|
+
replace?: {} | undefined;
|
|
5662
|
+
search?: {} | undefined;
|
|
5663
|
+
slice?: {} | undefined;
|
|
5664
|
+
split?: {} | undefined;
|
|
5665
|
+
substring?: {} | undefined;
|
|
5666
|
+
toLowerCase?: (() => string) | undefined;
|
|
5667
|
+
toLocaleLowerCase?: {} | undefined;
|
|
5668
|
+
toUpperCase?: (() => string) | undefined;
|
|
5669
|
+
toLocaleUpperCase?: {} | undefined;
|
|
5670
|
+
trim?: (() => string) | undefined;
|
|
5671
|
+
readonly length?: number | undefined;
|
|
5672
|
+
substr?: {} | undefined;
|
|
5673
|
+
valueOf?: (() => string) | undefined;
|
|
5674
|
+
codePointAt?: {} | undefined;
|
|
5675
|
+
includes?: {} | undefined;
|
|
5676
|
+
endsWith?: {} | undefined;
|
|
5677
|
+
normalize?: {} | undefined;
|
|
5678
|
+
repeat?: {} | undefined;
|
|
5679
|
+
startsWith?: {} | undefined;
|
|
5680
|
+
anchor?: {} | undefined;
|
|
5681
|
+
big?: (() => string) | undefined;
|
|
5682
|
+
blink?: (() => string) | undefined;
|
|
5683
|
+
bold?: (() => string) | undefined;
|
|
5684
|
+
fixed?: (() => string) | undefined;
|
|
5685
|
+
fontcolor?: {} | undefined;
|
|
5686
|
+
fontsize?: {} | undefined;
|
|
5687
|
+
italics?: (() => string) | undefined;
|
|
5688
|
+
link?: {} | undefined;
|
|
5689
|
+
small?: (() => string) | undefined;
|
|
5690
|
+
strike?: (() => string) | undefined;
|
|
5691
|
+
sub?: (() => string) | undefined;
|
|
5692
|
+
sup?: (() => string) | undefined;
|
|
5693
|
+
padStart?: {} | undefined;
|
|
5694
|
+
padEnd?: {} | undefined;
|
|
5695
|
+
trimEnd?: (() => string) | undefined;
|
|
5696
|
+
trimStart?: (() => string) | undefined;
|
|
5697
|
+
trimLeft?: (() => string) | undefined;
|
|
5698
|
+
trimRight?: (() => string) | undefined;
|
|
5699
|
+
matchAll?: {} | undefined;
|
|
5700
|
+
replaceAll?: {} | undefined;
|
|
5701
|
+
at?: {} | undefined;
|
|
5702
|
+
[Symbol.iterator]?: (() => StringIterator<string>) | undefined;
|
|
5703
|
+
})[] | undefined;
|
|
5704
|
+
additionalProperties?: {
|
|
5705
|
+
[x: string]: unknown;
|
|
5706
|
+
} | undefined;
|
|
5707
|
+
}>(override?: O | undefined) => Record<"openai/gpt-5.3-codex", {
|
|
5708
|
+
name: string;
|
|
5709
|
+
created: string;
|
|
5710
|
+
knowledge: string;
|
|
5711
|
+
modalities: {
|
|
5712
|
+
input: readonly ["text", "image"];
|
|
5713
|
+
output: readonly ["text"];
|
|
5714
|
+
};
|
|
5715
|
+
capabilities: readonly ["attachments", "reasoning", "tool_call", "structured_output", "temperature"];
|
|
5716
|
+
providers: readonly ["openai", "azure"];
|
|
5335
5717
|
} & O>];
|
|
5336
5718
|
readonly chat: readonly [<const O extends {
|
|
5337
5719
|
name?: string | undefined;
|
|
@@ -139,6 +139,12 @@ export const gpt52Codex = presetFor()("openai/gpt-5.2-codex", {
|
|
|
139
139
|
created: "2025-12-18",
|
|
140
140
|
knowledge: "2025-08",
|
|
141
141
|
});
|
|
142
|
+
export const gpt53Codex = presetFor()("openai/gpt-5.3-codex", {
|
|
143
|
+
...GPT_BASE,
|
|
144
|
+
name: "GPT-5.3 Codex",
|
|
145
|
+
created: "2026-02-05",
|
|
146
|
+
knowledge: "2025-08",
|
|
147
|
+
});
|
|
142
148
|
export const textEmbedding3Small = presetFor()("openai/text-embedding-3-small", {
|
|
143
149
|
...EMBEDDINGS_BASE,
|
|
144
150
|
name: "Text Embedding 3 Small",
|
|
@@ -173,12 +179,13 @@ const gptAtomic = {
|
|
|
173
179
|
v5: [gpt5, gpt5Mini, gpt5Nano, gpt5Pro],
|
|
174
180
|
"v5.1": [gpt51, gpt51Chat, gpt51Codex, gpt51CodexMax],
|
|
175
181
|
"v5.2": [gpt52, gpt52Chat, gpt52Pro, gpt52Codex],
|
|
176
|
-
|
|
182
|
+
"v5.3": [gpt53Codex],
|
|
183
|
+
codex: [gpt5Codex, gpt51Codex, gpt51CodexMax, gpt52Codex, gpt53Codex],
|
|
177
184
|
chat: [gpt51Chat, gpt52Chat],
|
|
178
185
|
pro: [gpt5Pro, gpt52Pro],
|
|
179
186
|
};
|
|
180
187
|
const gptGroups = {
|
|
181
|
-
"v5.x": [...gptAtomic["v5"], ...gptAtomic["v5.1"], ...gptAtomic["v5.2"]],
|
|
188
|
+
"v5.x": [...gptAtomic["v5"], ...gptAtomic["v5.1"], ...gptAtomic["v5.2"], ...gptAtomic["v5.3"]],
|
|
182
189
|
};
|
|
183
190
|
const textEmbeddingsAtomic = {
|
|
184
191
|
v3: [textEmbedding3Small, textEmbedding3Large],
|
package/dist/models/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProviderId } from "../providers/types";
|
|
2
|
-
export declare const CANONICAL_MODEL_IDS: readonly ["anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.5", "anthropic/claude-opus-4.1", "anthropic/claude-opus-4", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-3.7", "anthropic/claude-sonnet-3.5", "anthropic/claude-haiku-3.5", "anthropic/claude-haiku-3", "openai/gpt-oss-20b", "openai/gpt-oss-120b", "openai/gpt-5", "openai/gpt-5-pro", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.2-codex", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-5-codex", "openai/gpt-5.1-codex", "openai/gpt-5.1-codex-max", "openai/gpt-5.1-chat", "openai/gpt-5.1", "openai/text-embedding-3-small", "openai/text-embedding-3-large", "amazon/nova-micro", "amazon/nova-lite", "amazon/nova-pro", "amazon/nova-premier", "amazon/nova-2-lite", "amazon/nova-2-multimodal-embeddings", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash-preview", "google/gemini-3-pro-preview", "google/embedding-001", "meta/llama-3.1-8b", "meta/llama-3.1-70b", "meta/llama-3.1-405b", "meta/llama-3.2-1b", "meta/llama-3.2-3b", "meta/llama-3.2-11b", "meta/llama-3.2-90b", "meta/llama-3.3-70b", "meta/llama-4-scout", "meta/llama-4-maverick", "cohere/embed-v4.0", "cohere/embed-english-v3.0", "cohere/embed-english-light-v3.0", "cohere/embed-multilingual-v3.0", "cohere/embed-multilingual-light-v3.0", "cohere/command-a", "cohere/command-r7b", "cohere/command-a-translate", "cohere/command-a-reasoning", "cohere/command-a-vision", "cohere/command-r", "cohere/command-r-plus", "voyage/voyage-2-code", "voyage/voyage-2-law", "voyage/voyage-2-finance", "voyage/voyage-3-code", "voyage/voyage-3-large", "voyage/voyage-3.5-lite", "voyage/voyage-3.5", "voyage/voyage-4-lite", "voyage/voyage-4", "voyage/voyage-4-large"];
|
|
2
|
+
export declare const CANONICAL_MODEL_IDS: readonly ["anthropic/claude-opus-4.6", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.5", "anthropic/claude-opus-4.5", "anthropic/claude-opus-4.1", "anthropic/claude-opus-4", "anthropic/claude-sonnet-4", "anthropic/claude-sonnet-3.7", "anthropic/claude-sonnet-3.5", "anthropic/claude-haiku-3.5", "anthropic/claude-haiku-3", "openai/gpt-oss-20b", "openai/gpt-oss-120b", "openai/gpt-5", "openai/gpt-5-pro", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.2-codex", "openai/gpt-5.3-codex", "openai/gpt-5-mini", "openai/gpt-5-nano", "openai/gpt-5-codex", "openai/gpt-5.1-codex", "openai/gpt-5.1-codex-max", "openai/gpt-5.1-chat", "openai/gpt-5.1", "openai/text-embedding-3-small", "openai/text-embedding-3-large", "amazon/nova-micro", "amazon/nova-lite", "amazon/nova-pro", "amazon/nova-premier", "amazon/nova-2-lite", "amazon/nova-2-multimodal-embeddings", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash-preview", "google/gemini-3-pro-preview", "google/embedding-001", "meta/llama-3.1-8b", "meta/llama-3.1-70b", "meta/llama-3.1-405b", "meta/llama-3.2-1b", "meta/llama-3.2-3b", "meta/llama-3.2-11b", "meta/llama-3.2-90b", "meta/llama-3.3-70b", "meta/llama-4-scout", "meta/llama-4-maverick", "cohere/embed-v4.0", "cohere/embed-english-v3.0", "cohere/embed-english-light-v3.0", "cohere/embed-multilingual-v3.0", "cohere/embed-multilingual-light-v3.0", "cohere/command-a", "cohere/command-r7b", "cohere/command-a-translate", "cohere/command-a-reasoning", "cohere/command-a-vision", "cohere/command-r", "cohere/command-r-plus", "voyage/voyage-2-code", "voyage/voyage-2-law", "voyage/voyage-2-finance", "voyage/voyage-3-code", "voyage/voyage-3-large", "voyage/voyage-3.5-lite", "voyage/voyage-3.5", "voyage/voyage-4-lite", "voyage/voyage-4", "voyage/voyage-4-large"];
|
|
3
3
|
export type CanonicalModelId = (typeof CANONICAL_MODEL_IDS)[number];
|
|
4
4
|
export type ModelId = CanonicalModelId | (string & {});
|
|
5
5
|
export type CatalogModel = {
|
package/dist/models/types.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const CANONICAL_MODEL_IDS = [
|
|
2
2
|
// Anthropic
|
|
3
|
+
"anthropic/claude-opus-4.6",
|
|
3
4
|
"anthropic/claude-haiku-4.5",
|
|
4
5
|
"anthropic/claude-sonnet-4.5",
|
|
5
6
|
"anthropic/claude-opus-4.5",
|
|
@@ -19,6 +20,7 @@ export const CANONICAL_MODEL_IDS = [
|
|
|
19
20
|
"openai/gpt-5.2-chat",
|
|
20
21
|
"openai/gpt-5.2-pro",
|
|
21
22
|
"openai/gpt-5.2-codex",
|
|
23
|
+
"openai/gpt-5.3-codex",
|
|
22
24
|
"openai/gpt-5-mini",
|
|
23
25
|
"openai/gpt-5-nano",
|
|
24
26
|
"openai/gpt-5-codex",
|
|
@@ -10,6 +10,7 @@ const MAPPING = {
|
|
|
10
10
|
// Require Inference Profiles and can't be resolved from standard name mapping
|
|
11
11
|
"anthropic/claude-haiku-4.5": "{ip}anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
12
12
|
"anthropic/claude-sonnet-4.5": "{ip}anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
13
|
+
"anthropic/claude-opus-4.6": "{ip}anthropic.claude-opus-4-6-v1",
|
|
13
14
|
"anthropic/claude-opus-4.5": "{ip}anthropic.claude-opus-4-5-20251101-v1:0",
|
|
14
15
|
"anthropic/claude-opus-4.1": "{ip}anthropic.claude-opus-4-1-20250805-v1:0",
|
|
15
16
|
"anthropic/claude-sonnet-4": "{ip}anthropic.claude-sonnet-4-20250514-v1:0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebo-ai/gateway",
|
|
3
|
-
"version": "0.4.0-alpha.
|
|
3
|
+
"version": "0.4.0-alpha.4",
|
|
4
4
|
"description": "AI gateway as a framework. For full control over models, routing & lifecycle. OpenAI-compatible /chat/completions, /embeddings & /models.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -7,6 +7,7 @@ import { claudeReasoningMiddleware } from "./middleware";
|
|
|
7
7
|
|
|
8
8
|
test("claudeReasoningMiddleware > matching patterns", () => {
|
|
9
9
|
const matching = [
|
|
10
|
+
"anthropic/claude-opus-4.6",
|
|
10
11
|
"anthropic/claude-sonnet-3.7",
|
|
11
12
|
"anthropic/claude-opus-4.5",
|
|
12
13
|
"anthropic/claude-sonnet-4.5",
|
|
@@ -108,7 +108,19 @@ export const claudeOpus45 = presetFor<CanonicalModelId, CatalogModel>()(
|
|
|
108
108
|
name: "Claude Opus 4.5",
|
|
109
109
|
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
110
110
|
created: "2025-11-01",
|
|
111
|
-
knowledge: "2025-
|
|
111
|
+
knowledge: "2025-05",
|
|
112
|
+
} satisfies DeepPartial<CatalogModel>,
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
export const claudeOpus46 = presetFor<CanonicalModelId, CatalogModel>()(
|
|
116
|
+
"anthropic/claude-opus-4.6" as const,
|
|
117
|
+
{
|
|
118
|
+
...CLAUDE_BASE,
|
|
119
|
+
...CLAUDE_PDF_MODALITIES,
|
|
120
|
+
name: "Claude Opus 4.6",
|
|
121
|
+
capabilities: [...CLAUDE_BASE.capabilities, "reasoning"],
|
|
122
|
+
created: "2026-02-05",
|
|
123
|
+
knowledge: "2025-05",
|
|
112
124
|
} satisfies DeepPartial<CatalogModel>,
|
|
113
125
|
);
|
|
114
126
|
|
|
@@ -137,6 +149,7 @@ export const claudeOpus4 = presetFor<CanonicalModelId, CatalogModel>()(
|
|
|
137
149
|
);
|
|
138
150
|
|
|
139
151
|
const claudeAtomic = {
|
|
152
|
+
"v4.6": [claudeOpus46],
|
|
140
153
|
"v4.5": [claudeHaiku45, claudeSonnet45, claudeOpus45],
|
|
141
154
|
"v4.1": [claudeOpus41],
|
|
142
155
|
v4: [claudeSonnet4, claudeOpus4],
|
|
@@ -145,17 +158,22 @@ const claudeAtomic = {
|
|
|
145
158
|
v3: [claudeHaiku3],
|
|
146
159
|
haiku: [claudeHaiku45, claudeHaiku35, claudeHaiku3],
|
|
147
160
|
sonnet: [claudeSonnet45, claudeSonnet4, claudeSonnet37, claudeSonnet35],
|
|
148
|
-
opus: [claudeOpus45, claudeOpus41, claudeOpus4],
|
|
161
|
+
opus: [claudeOpus46, claudeOpus45, claudeOpus41, claudeOpus4],
|
|
149
162
|
} as const;
|
|
150
163
|
|
|
151
164
|
const claudeGroups = {
|
|
152
|
-
"v4.x": [
|
|
165
|
+
"v4.x": [
|
|
166
|
+
...claudeAtomic["v4.6"],
|
|
167
|
+
...claudeAtomic["v4.5"],
|
|
168
|
+
...claudeAtomic["v4.1"],
|
|
169
|
+
...claudeAtomic["v4"],
|
|
170
|
+
],
|
|
153
171
|
"v3.x": [...claudeAtomic["v3.7"], ...claudeAtomic["v3.5"], ...claudeAtomic["v3"]],
|
|
154
172
|
} as const;
|
|
155
173
|
|
|
156
174
|
export const claude = {
|
|
157
175
|
...claudeAtomic,
|
|
158
176
|
...claudeGroups,
|
|
159
|
-
latest: [...claudeAtomic["v4.
|
|
177
|
+
latest: [...claudeAtomic["v4.6"]],
|
|
160
178
|
all: Object.values(claudeAtomic).flat(),
|
|
161
179
|
} as const;
|
|
@@ -178,6 +178,16 @@ export const gpt52Codex = presetFor<CanonicalModelId, CatalogModel>()(
|
|
|
178
178
|
} satisfies CatalogModel,
|
|
179
179
|
);
|
|
180
180
|
|
|
181
|
+
export const gpt53Codex = presetFor<CanonicalModelId, CatalogModel>()(
|
|
182
|
+
"openai/gpt-5.3-codex" as const,
|
|
183
|
+
{
|
|
184
|
+
...GPT_BASE,
|
|
185
|
+
name: "GPT-5.3 Codex",
|
|
186
|
+
created: "2026-02-05",
|
|
187
|
+
knowledge: "2025-08",
|
|
188
|
+
} satisfies CatalogModel,
|
|
189
|
+
);
|
|
190
|
+
|
|
181
191
|
export const textEmbedding3Small = presetFor<CanonicalModelId, CatalogModel>()(
|
|
182
192
|
"openai/text-embedding-3-small" as const,
|
|
183
193
|
{
|
|
@@ -230,13 +240,14 @@ const gptAtomic = {
|
|
|
230
240
|
v5: [gpt5, gpt5Mini, gpt5Nano, gpt5Pro],
|
|
231
241
|
"v5.1": [gpt51, gpt51Chat, gpt51Codex, gpt51CodexMax],
|
|
232
242
|
"v5.2": [gpt52, gpt52Chat, gpt52Pro, gpt52Codex],
|
|
233
|
-
|
|
243
|
+
"v5.3": [gpt53Codex],
|
|
244
|
+
codex: [gpt5Codex, gpt51Codex, gpt51CodexMax, gpt52Codex, gpt53Codex],
|
|
234
245
|
chat: [gpt51Chat, gpt52Chat],
|
|
235
246
|
pro: [gpt5Pro, gpt52Pro],
|
|
236
247
|
} as const;
|
|
237
248
|
|
|
238
249
|
const gptGroups = {
|
|
239
|
-
"v5.x": [...gptAtomic["v5"], ...gptAtomic["v5.1"], ...gptAtomic["v5.2"]],
|
|
250
|
+
"v5.x": [...gptAtomic["v5"], ...gptAtomic["v5.1"], ...gptAtomic["v5.2"], ...gptAtomic["v5.3"]],
|
|
240
251
|
} as const;
|
|
241
252
|
|
|
242
253
|
const textEmbeddingsAtomic = {
|
package/src/models/types.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ProviderId } from "../providers/types";
|
|
|
2
2
|
|
|
3
3
|
export const CANONICAL_MODEL_IDS = [
|
|
4
4
|
// Anthropic
|
|
5
|
+
"anthropic/claude-opus-4.6",
|
|
5
6
|
"anthropic/claude-haiku-4.5",
|
|
6
7
|
"anthropic/claude-sonnet-4.5",
|
|
7
8
|
"anthropic/claude-opus-4.5",
|
|
@@ -21,6 +22,7 @@ export const CANONICAL_MODEL_IDS = [
|
|
|
21
22
|
"openai/gpt-5.2-chat",
|
|
22
23
|
"openai/gpt-5.2-pro",
|
|
23
24
|
"openai/gpt-5.2-codex",
|
|
25
|
+
"openai/gpt-5.3-codex",
|
|
24
26
|
"openai/gpt-5-mini",
|
|
25
27
|
"openai/gpt-5-nano",
|
|
26
28
|
"openai/gpt-5-codex",
|
|
@@ -14,6 +14,7 @@ const MAPPING = {
|
|
|
14
14
|
// Require Inference Profiles and can't be resolved from standard name mapping
|
|
15
15
|
"anthropic/claude-haiku-4.5": "{ip}anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
16
16
|
"anthropic/claude-sonnet-4.5": "{ip}anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
17
|
+
"anthropic/claude-opus-4.6": "{ip}anthropic.claude-opus-4-6-v1",
|
|
17
18
|
"anthropic/claude-opus-4.5": "{ip}anthropic.claude-opus-4-5-20251101-v1:0",
|
|
18
19
|
"anthropic/claude-opus-4.1": "{ip}anthropic.claude-opus-4-1-20250805-v1:0",
|
|
19
20
|
"anthropic/claude-sonnet-4": "{ip}anthropic.claude-sonnet-4-20250514-v1:0",
|