ai.libx.js 0.2.11 → 0.2.12
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/build/models/anthropic.js +77 -42
- package/build/models/anthropic.js.map +1 -1
- package/package.json +1 -1
- package/src/models/anthropic.ts +95 -48
|
@@ -3,81 +3,116 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.anthropicModels = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
5
|
exports.anthropicModels = {
|
|
6
|
-
'anthropic/claude-opus-4-
|
|
6
|
+
'anthropic/claude-opus-4-6': (0, types_1.createModel)('Claude Opus 4.6', {
|
|
7
7
|
url: 'https://api.anthropic.com/v1/messages',
|
|
8
|
-
releaseDate: '2024-12-19',
|
|
9
8
|
contextWindow: 200000,
|
|
10
|
-
maxOutputTokens:
|
|
11
|
-
pricing: (0, types_1.createPricing)(0.
|
|
9
|
+
maxOutputTokens: 128000,
|
|
10
|
+
pricing: (0, types_1.createPricing)(0.005, 0.025),
|
|
12
11
|
}),
|
|
13
|
-
'anthropic/claude-
|
|
12
|
+
'anthropic/claude-sonnet-4-5': (0, types_1.createModel)('Claude Sonnet 4.5', {
|
|
14
13
|
url: 'https://api.anthropic.com/v1/messages',
|
|
15
|
-
releaseDate: '
|
|
14
|
+
releaseDate: '2025-09-29',
|
|
16
15
|
contextWindow: 200000,
|
|
17
|
-
maxOutputTokens:
|
|
16
|
+
maxOutputTokens: 64000,
|
|
17
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
18
18
|
}),
|
|
19
|
-
'anthropic/claude-sonnet-4-5': (0, types_1.createModel)('Claude Sonnet 4.5', {
|
|
19
|
+
'anthropic/claude-sonnet-4-5-20250929': (0, types_1.createModel)('Claude Sonnet 4.5', {
|
|
20
20
|
url: 'https://api.anthropic.com/v1/messages',
|
|
21
|
-
releaseDate: '2025-
|
|
21
|
+
releaseDate: '2025-09-29',
|
|
22
22
|
contextWindow: 200000,
|
|
23
|
-
maxOutputTokens:
|
|
24
|
-
pricing: (0, types_1.createPricing)(0.003, 0.015
|
|
23
|
+
maxOutputTokens: 64000,
|
|
24
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
25
25
|
}),
|
|
26
|
-
'anthropic/claude-
|
|
26
|
+
'anthropic/claude-haiku-4-5': (0, types_1.createModel)('Claude Haiku 4.5', {
|
|
27
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
28
|
+
releaseDate: '2025-10-01',
|
|
29
|
+
contextWindow: 200000,
|
|
30
|
+
maxOutputTokens: 64000,
|
|
31
|
+
pricing: (0, types_1.createPricing)(0.001, 0.005),
|
|
32
|
+
}),
|
|
33
|
+
'anthropic/claude-haiku-4-5-20251001': (0, types_1.createModel)('Claude Haiku 4.5', {
|
|
34
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
35
|
+
releaseDate: '2025-10-01',
|
|
36
|
+
contextWindow: 200000,
|
|
37
|
+
maxOutputTokens: 64000,
|
|
38
|
+
pricing: (0, types_1.createPricing)(0.001, 0.005),
|
|
39
|
+
}),
|
|
40
|
+
'anthropic/claude-opus-4-5': (0, types_1.createModel)('Claude Opus 4.5', {
|
|
41
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
42
|
+
releaseDate: '2025-11-01',
|
|
43
|
+
contextWindow: 200000,
|
|
44
|
+
maxOutputTokens: 64000,
|
|
45
|
+
pricing: (0, types_1.createPricing)(0.005, 0.025),
|
|
46
|
+
}),
|
|
47
|
+
'anthropic/claude-opus-4-5-20251101': (0, types_1.createModel)('Claude Opus 4.5', {
|
|
48
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
49
|
+
releaseDate: '2025-11-01',
|
|
50
|
+
contextWindow: 200000,
|
|
51
|
+
maxOutputTokens: 64000,
|
|
52
|
+
pricing: (0, types_1.createPricing)(0.005, 0.025),
|
|
53
|
+
}),
|
|
54
|
+
'anthropic/claude-opus-4-1': (0, types_1.createModel)('Claude Opus 4.1', {
|
|
27
55
|
url: 'https://api.anthropic.com/v1/messages',
|
|
28
|
-
releaseDate: '
|
|
56
|
+
releaseDate: '2025-08-05',
|
|
29
57
|
contextWindow: 200000,
|
|
30
|
-
maxOutputTokens:
|
|
58
|
+
maxOutputTokens: 32000,
|
|
59
|
+
pricing: (0, types_1.createPricing)(0.015, 0.075),
|
|
31
60
|
}),
|
|
32
|
-
'anthropic/claude-
|
|
61
|
+
'anthropic/claude-opus-4-1-20250805': (0, types_1.createModel)('Claude Opus 4.1', {
|
|
33
62
|
url: 'https://api.anthropic.com/v1/messages',
|
|
34
|
-
releaseDate: '2025-
|
|
63
|
+
releaseDate: '2025-08-05',
|
|
35
64
|
contextWindow: 200000,
|
|
36
|
-
maxOutputTokens:
|
|
65
|
+
maxOutputTokens: 32000,
|
|
66
|
+
pricing: (0, types_1.createPricing)(0.015, 0.075),
|
|
37
67
|
}),
|
|
38
|
-
'anthropic/claude-
|
|
68
|
+
'anthropic/claude-sonnet-4-0': (0, types_1.createModel)('Claude Sonnet 4', {
|
|
39
69
|
url: 'https://api.anthropic.com/v1/messages',
|
|
40
|
-
releaseDate: '
|
|
70
|
+
releaseDate: '2025-05-14',
|
|
41
71
|
contextWindow: 200000,
|
|
42
|
-
maxOutputTokens:
|
|
72
|
+
maxOutputTokens: 64000,
|
|
43
73
|
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
44
74
|
}),
|
|
45
|
-
'anthropic/claude-
|
|
75
|
+
'anthropic/claude-sonnet-4-20250514': (0, types_1.createModel)('Claude Sonnet 4', {
|
|
46
76
|
url: 'https://api.anthropic.com/v1/messages',
|
|
47
|
-
releaseDate: '
|
|
77
|
+
releaseDate: '2025-05-14',
|
|
48
78
|
contextWindow: 200000,
|
|
49
|
-
maxOutputTokens:
|
|
50
|
-
pricing: (0, types_1.createPricing)(0.
|
|
79
|
+
maxOutputTokens: 64000,
|
|
80
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
51
81
|
}),
|
|
52
|
-
'anthropic/claude-3-
|
|
82
|
+
'anthropic/claude-3-7-sonnet-latest': (0, types_1.createModel)('Claude Sonnet 3.7', {
|
|
53
83
|
url: 'https://api.anthropic.com/v1/messages',
|
|
54
|
-
releaseDate: '
|
|
84
|
+
releaseDate: '2025-02-19',
|
|
55
85
|
contextWindow: 200000,
|
|
56
|
-
maxOutputTokens:
|
|
86
|
+
maxOutputTokens: 64000,
|
|
87
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
57
88
|
}),
|
|
58
|
-
'anthropic/claude-3-sonnet-
|
|
89
|
+
'anthropic/claude-3-7-sonnet-20250219': (0, types_1.createModel)('Claude Sonnet 3.7', {
|
|
59
90
|
url: 'https://api.anthropic.com/v1/messages',
|
|
60
|
-
releaseDate: '
|
|
91
|
+
releaseDate: '2025-02-19',
|
|
61
92
|
contextWindow: 200000,
|
|
62
|
-
maxOutputTokens:
|
|
93
|
+
maxOutputTokens: 64000,
|
|
94
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
63
95
|
}),
|
|
64
|
-
'anthropic/claude-
|
|
96
|
+
'anthropic/claude-opus-4-0': (0, types_1.createModel)('Claude Opus 4', {
|
|
65
97
|
url: 'https://api.anthropic.com/v1/messages',
|
|
66
|
-
releaseDate: '
|
|
98
|
+
releaseDate: '2025-05-14',
|
|
67
99
|
contextWindow: 200000,
|
|
68
|
-
maxOutputTokens:
|
|
100
|
+
maxOutputTokens: 32000,
|
|
101
|
+
pricing: (0, types_1.createPricing)(0.015, 0.075),
|
|
69
102
|
}),
|
|
70
|
-
'anthropic/claude-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
103
|
+
'anthropic/claude-opus-4-20250514': (0, types_1.createModel)('Claude Opus 4', {
|
|
104
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
105
|
+
releaseDate: '2025-05-14',
|
|
106
|
+
contextWindow: 200000,
|
|
107
|
+
maxOutputTokens: 32000,
|
|
108
|
+
pricing: (0, types_1.createPricing)(0.015, 0.075),
|
|
75
109
|
}),
|
|
76
|
-
'anthropic/claude-
|
|
77
|
-
|
|
78
|
-
|
|
110
|
+
'anthropic/claude-3-haiku-20240307': (0, types_1.createModel)('Claude Haiku 3', {
|
|
111
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
112
|
+
releaseDate: '2024-03-07',
|
|
113
|
+
contextWindow: 200000,
|
|
79
114
|
maxOutputTokens: 4096,
|
|
80
|
-
|
|
115
|
+
pricing: (0, types_1.createPricing)(0.00025, 0.00125),
|
|
81
116
|
}),
|
|
82
117
|
};
|
|
83
118
|
//# sourceMappingURL=anthropic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic.js","sourceRoot":"","sources":["../../src/models/anthropic.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,eAAe,GAA8B;
|
|
1
|
+
{"version":3,"file":"anthropic.js","sourceRoot":"","sources":["../../src/models/anthropic.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,eAAe,GAA8B;IAIzD,2BAA2B,EAAE,IAAA,mBAAW,EAAC,iBAAiB,EAAE;QAC3D,GAAG,EAAE,uCAAuC;QAC5C,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,MAAM;QACvB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IAGF,6BAA6B,EAAE,IAAA,mBAAW,EAAC,mBAAmB,EAAE;QAC/D,GAAG,EAAE,uCAAuC;QAC5C,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IACF,sCAAsC,EAAE,IAAA,mBAAW,EAAC,mBAAmB,EAAE;QACxE,GAAG,EAAE,uCAAuC;QAC5C,WAAW,EAAE,YAAY;QACzB,aAAa,EAA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WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IACF,kCAAkC,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QAChE,GAAG,EAAE,uCAAuC;QAC5C,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IAGF,mCAAmC,EAAE,IAAA,mBAAW,EAAC,gBAAgB,EAAE;QAClE,GAAG,EAAE,uCAAuC;QAC5C,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,OAAO,CAAC;KACxC,CAAC;CACF,CAAC","sourcesContent":["import { ModelInfo } from '../types';\nimport { createModel, createPricing } from './types';\n\nexport const anthropicModels: Record<string, ModelInfo> = {\n\t// --- Latest models ---\n\n\t// Claude Opus 4.6\n\t'anthropic/claude-opus-4-6': createModel('Claude Opus 4.6', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 128000,\n\t\tpricing: createPricing(0.005, 0.025),\n\t}),\n\n\t// Claude Sonnet 4.5\n\t'anthropic/claude-sonnet-4-5': createModel('Claude Sonnet 4.5', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-09-29',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\t'anthropic/claude-sonnet-4-5-20250929': createModel('Claude Sonnet 4.5', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-09-29',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\n\t// Claude Haiku 4.5\n\t'anthropic/claude-haiku-4-5': createModel('Claude Haiku 4.5', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-10-01',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.001, 0.005),\n\t}),\n\t'anthropic/claude-haiku-4-5-20251001': createModel('Claude Haiku 4.5', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-10-01',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.001, 0.005),\n\t}),\n\n\t// --- Legacy models ---\n\n\t// Claude Opus 4.5\n\t'anthropic/claude-opus-4-5': createModel('Claude Opus 4.5', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-11-01',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.005, 0.025),\n\t}),\n\t'anthropic/claude-opus-4-5-20251101': createModel('Claude Opus 4.5', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-11-01',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.005, 0.025),\n\t}),\n\n\t// Claude Opus 4.1\n\t'anthropic/claude-opus-4-1': createModel('Claude Opus 4.1', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-08-05',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 32000,\n\t\tpricing: createPricing(0.015, 0.075),\n\t}),\n\t'anthropic/claude-opus-4-1-20250805': createModel('Claude Opus 4.1', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-08-05',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 32000,\n\t\tpricing: createPricing(0.015, 0.075),\n\t}),\n\n\t// Claude Sonnet 4\n\t'anthropic/claude-sonnet-4-0': createModel('Claude Sonnet 4', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-05-14',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\t'anthropic/claude-sonnet-4-20250514': createModel('Claude Sonnet 4', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-05-14',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\n\t// Claude Sonnet 3.7\n\t'anthropic/claude-3-7-sonnet-latest': createModel('Claude Sonnet 3.7', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-02-19',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\t'anthropic/claude-3-7-sonnet-20250219': createModel('Claude Sonnet 3.7', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-02-19',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 64000,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\n\t// Claude Opus 4\n\t'anthropic/claude-opus-4-0': createModel('Claude Opus 4', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-05-14',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 32000,\n\t\tpricing: createPricing(0.015, 0.075),\n\t}),\n\t'anthropic/claude-opus-4-20250514': createModel('Claude Opus 4', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2025-05-14',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 32000,\n\t\tpricing: createPricing(0.015, 0.075),\n\t}),\n\n\t// Claude Haiku 3\n\t'anthropic/claude-3-haiku-20240307': createModel('Claude Haiku 3', {\n\t\turl: 'https://api.anthropic.com/v1/messages',\n\t\treleaseDate: '2024-03-07',\n\t\tcontextWindow: 200000,\n\t\tmaxOutputTokens: 4096,\n\t\tpricing: createPricing(0.00025, 0.00125),\n\t}),\n};\n"]}
|
package/package.json
CHANGED
package/src/models/anthropic.ts
CHANGED
|
@@ -2,89 +2,136 @@ import { ModelInfo } from '../types';
|
|
|
2
2
|
import { createModel, createPricing } from './types';
|
|
3
3
|
|
|
4
4
|
export const anthropicModels: Record<string, ModelInfo> = {
|
|
5
|
-
//
|
|
6
|
-
|
|
5
|
+
// --- Latest models ---
|
|
6
|
+
|
|
7
|
+
// Claude Opus 4.6
|
|
8
|
+
'anthropic/claude-opus-4-6': createModel('Claude Opus 4.6', {
|
|
7
9
|
url: 'https://api.anthropic.com/v1/messages',
|
|
8
|
-
releaseDate: '2024-12-19',
|
|
9
10
|
contextWindow: 200000,
|
|
10
|
-
maxOutputTokens:
|
|
11
|
-
pricing: createPricing(0.
|
|
11
|
+
maxOutputTokens: 128000,
|
|
12
|
+
pricing: createPricing(0.005, 0.025),
|
|
12
13
|
}),
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
// Claude Sonnet 4.5
|
|
16
|
+
'anthropic/claude-sonnet-4-5': createModel('Claude Sonnet 4.5', {
|
|
14
17
|
url: 'https://api.anthropic.com/v1/messages',
|
|
15
|
-
releaseDate: '
|
|
18
|
+
releaseDate: '2025-09-29',
|
|
16
19
|
contextWindow: 200000,
|
|
17
|
-
maxOutputTokens:
|
|
20
|
+
maxOutputTokens: 64000,
|
|
21
|
+
pricing: createPricing(0.003, 0.015),
|
|
22
|
+
}),
|
|
23
|
+
'anthropic/claude-sonnet-4-5-20250929': createModel('Claude Sonnet 4.5', {
|
|
24
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
25
|
+
releaseDate: '2025-09-29',
|
|
26
|
+
contextWindow: 200000,
|
|
27
|
+
maxOutputTokens: 64000,
|
|
28
|
+
pricing: createPricing(0.003, 0.015),
|
|
18
29
|
}),
|
|
19
30
|
|
|
20
|
-
// Claude
|
|
21
|
-
'anthropic/claude-
|
|
31
|
+
// Claude Haiku 4.5
|
|
32
|
+
'anthropic/claude-haiku-4-5': createModel('Claude Haiku 4.5', {
|
|
22
33
|
url: 'https://api.anthropic.com/v1/messages',
|
|
23
|
-
releaseDate: '2025-01
|
|
34
|
+
releaseDate: '2025-10-01',
|
|
24
35
|
contextWindow: 200000,
|
|
25
|
-
maxOutputTokens:
|
|
26
|
-
pricing: createPricing(0.
|
|
36
|
+
maxOutputTokens: 64000,
|
|
37
|
+
pricing: createPricing(0.001, 0.005),
|
|
27
38
|
}),
|
|
28
|
-
'anthropic/claude-
|
|
39
|
+
'anthropic/claude-haiku-4-5-20251001': createModel('Claude Haiku 4.5', {
|
|
29
40
|
url: 'https://api.anthropic.com/v1/messages',
|
|
30
|
-
releaseDate: '
|
|
41
|
+
releaseDate: '2025-10-01',
|
|
31
42
|
contextWindow: 200000,
|
|
32
|
-
maxOutputTokens:
|
|
43
|
+
maxOutputTokens: 64000,
|
|
44
|
+
pricing: createPricing(0.001, 0.005),
|
|
33
45
|
}),
|
|
34
|
-
|
|
46
|
+
|
|
47
|
+
// --- Legacy models ---
|
|
48
|
+
|
|
49
|
+
// Claude Opus 4.5
|
|
50
|
+
'anthropic/claude-opus-4-5': createModel('Claude Opus 4.5', {
|
|
35
51
|
url: 'https://api.anthropic.com/v1/messages',
|
|
36
|
-
releaseDate: '2025-01
|
|
52
|
+
releaseDate: '2025-11-01',
|
|
37
53
|
contextWindow: 200000,
|
|
38
|
-
maxOutputTokens:
|
|
54
|
+
maxOutputTokens: 64000,
|
|
55
|
+
pricing: createPricing(0.005, 0.025),
|
|
39
56
|
}),
|
|
40
|
-
'anthropic/claude-
|
|
57
|
+
'anthropic/claude-opus-4-5-20251101': createModel('Claude Opus 4.5', {
|
|
41
58
|
url: 'https://api.anthropic.com/v1/messages',
|
|
42
|
-
releaseDate: '
|
|
59
|
+
releaseDate: '2025-11-01',
|
|
43
60
|
contextWindow: 200000,
|
|
44
|
-
maxOutputTokens:
|
|
45
|
-
pricing: createPricing(0.
|
|
61
|
+
maxOutputTokens: 64000,
|
|
62
|
+
pricing: createPricing(0.005, 0.025),
|
|
63
|
+
}),
|
|
64
|
+
|
|
65
|
+
// Claude Opus 4.1
|
|
66
|
+
'anthropic/claude-opus-4-1': createModel('Claude Opus 4.1', {
|
|
67
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
68
|
+
releaseDate: '2025-08-05',
|
|
69
|
+
contextWindow: 200000,
|
|
70
|
+
maxOutputTokens: 32000,
|
|
71
|
+
pricing: createPricing(0.015, 0.075),
|
|
72
|
+
}),
|
|
73
|
+
'anthropic/claude-opus-4-1-20250805': createModel('Claude Opus 4.1', {
|
|
74
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
75
|
+
releaseDate: '2025-08-05',
|
|
76
|
+
contextWindow: 200000,
|
|
77
|
+
maxOutputTokens: 32000,
|
|
78
|
+
pricing: createPricing(0.015, 0.075),
|
|
46
79
|
}),
|
|
47
80
|
|
|
48
|
-
// Claude
|
|
49
|
-
'anthropic/claude-
|
|
81
|
+
// Claude Sonnet 4
|
|
82
|
+
'anthropic/claude-sonnet-4-0': createModel('Claude Sonnet 4', {
|
|
50
83
|
url: 'https://api.anthropic.com/v1/messages',
|
|
51
|
-
releaseDate: '
|
|
84
|
+
releaseDate: '2025-05-14',
|
|
52
85
|
contextWindow: 200000,
|
|
53
|
-
maxOutputTokens:
|
|
54
|
-
pricing: createPricing(0.
|
|
86
|
+
maxOutputTokens: 64000,
|
|
87
|
+
pricing: createPricing(0.003, 0.015),
|
|
55
88
|
}),
|
|
56
|
-
'anthropic/claude-
|
|
89
|
+
'anthropic/claude-sonnet-4-20250514': createModel('Claude Sonnet 4', {
|
|
57
90
|
url: 'https://api.anthropic.com/v1/messages',
|
|
58
|
-
releaseDate: '
|
|
91
|
+
releaseDate: '2025-05-14',
|
|
59
92
|
contextWindow: 200000,
|
|
60
|
-
maxOutputTokens:
|
|
93
|
+
maxOutputTokens: 64000,
|
|
94
|
+
pricing: createPricing(0.003, 0.015),
|
|
61
95
|
}),
|
|
62
96
|
|
|
63
|
-
// Claude 3
|
|
64
|
-
'anthropic/claude-3-sonnet-
|
|
97
|
+
// Claude Sonnet 3.7
|
|
98
|
+
'anthropic/claude-3-7-sonnet-latest': createModel('Claude Sonnet 3.7', {
|
|
65
99
|
url: 'https://api.anthropic.com/v1/messages',
|
|
66
|
-
releaseDate: '
|
|
100
|
+
releaseDate: '2025-02-19',
|
|
67
101
|
contextWindow: 200000,
|
|
68
|
-
maxOutputTokens:
|
|
102
|
+
maxOutputTokens: 64000,
|
|
103
|
+
pricing: createPricing(0.003, 0.015),
|
|
69
104
|
}),
|
|
70
|
-
'anthropic/claude-3-
|
|
105
|
+
'anthropic/claude-3-7-sonnet-20250219': createModel('Claude Sonnet 3.7', {
|
|
71
106
|
url: 'https://api.anthropic.com/v1/messages',
|
|
72
|
-
releaseDate: '
|
|
107
|
+
releaseDate: '2025-02-19',
|
|
73
108
|
contextWindow: 200000,
|
|
74
|
-
maxOutputTokens:
|
|
109
|
+
maxOutputTokens: 64000,
|
|
110
|
+
pricing: createPricing(0.003, 0.015),
|
|
75
111
|
}),
|
|
76
112
|
|
|
77
|
-
//
|
|
78
|
-
'anthropic/claude-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
113
|
+
// Claude Opus 4
|
|
114
|
+
'anthropic/claude-opus-4-0': createModel('Claude Opus 4', {
|
|
115
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
116
|
+
releaseDate: '2025-05-14',
|
|
117
|
+
contextWindow: 200000,
|
|
118
|
+
maxOutputTokens: 32000,
|
|
119
|
+
pricing: createPricing(0.015, 0.075),
|
|
83
120
|
}),
|
|
84
|
-
'anthropic/claude-
|
|
85
|
-
|
|
86
|
-
|
|
121
|
+
'anthropic/claude-opus-4-20250514': createModel('Claude Opus 4', {
|
|
122
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
123
|
+
releaseDate: '2025-05-14',
|
|
124
|
+
contextWindow: 200000,
|
|
125
|
+
maxOutputTokens: 32000,
|
|
126
|
+
pricing: createPricing(0.015, 0.075),
|
|
127
|
+
}),
|
|
128
|
+
|
|
129
|
+
// Claude Haiku 3
|
|
130
|
+
'anthropic/claude-3-haiku-20240307': createModel('Claude Haiku 3', {
|
|
131
|
+
url: 'https://api.anthropic.com/v1/messages',
|
|
132
|
+
releaseDate: '2024-03-07',
|
|
133
|
+
contextWindow: 200000,
|
|
87
134
|
maxOutputTokens: 4096,
|
|
88
|
-
|
|
135
|
+
pricing: createPricing(0.00025, 0.00125),
|
|
89
136
|
}),
|
|
90
137
|
};
|