ai.libx.js 0.2.13 → 0.2.14
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/deepseek.js +5 -23
- package/build/models/deepseek.js.map +1 -1
- package/build/models/xai.js +29 -13
- package/build/models/xai.js.map +1 -1
- package/package.json +1 -1
- package/src/models/deepseek.ts +7 -25
- package/src/models/xai.ts +37 -17
package/build/models/deepseek.js
CHANGED
|
@@ -5,34 +5,16 @@ const types_1 = require("./types");
|
|
|
5
5
|
exports.deepseekModels = {
|
|
6
6
|
'deepseek/deepseek-chat': (0, types_1.createModel)('DeepSeek Chat', {
|
|
7
7
|
releaseDate: '2025-01-20',
|
|
8
|
-
contextWindow:
|
|
8
|
+
contextWindow: 128000,
|
|
9
9
|
maxOutputTokens: 8192,
|
|
10
|
-
pricing: (0, types_1.createPricing)(0.
|
|
10
|
+
pricing: (0, types_1.createPricing)(0.00027, 0.0011),
|
|
11
11
|
}),
|
|
12
|
-
'deepseek/deepseek-
|
|
13
|
-
releaseDate: '2024-12-26',
|
|
14
|
-
contextWindow: 64000,
|
|
15
|
-
maxOutputTokens: 8192,
|
|
16
|
-
pricing: (0, types_1.createPricing)(0.00028, 0.00042),
|
|
17
|
-
}),
|
|
18
|
-
'deepseek/deepseek-v3-1': (0, types_1.createModel)('DeepSeek V3.1', {
|
|
19
|
-
releaseDate: '2025-01-10',
|
|
20
|
-
contextWindow: 64000,
|
|
21
|
-
maxOutputTokens: 8192,
|
|
22
|
-
pricing: (0, types_1.createPricing)(0.00028, 0.00042),
|
|
23
|
-
}),
|
|
24
|
-
'deepseek/deepseek-v3-2': (0, types_1.createModel)('DeepSeek V3.2', {
|
|
25
|
-
releaseDate: '2025-01-20',
|
|
26
|
-
contextWindow: 64000,
|
|
27
|
-
maxOutputTokens: 8192,
|
|
28
|
-
pricing: (0, types_1.createPricing)(0.00028, 0.00042),
|
|
29
|
-
}),
|
|
30
|
-
'deepseek/deepseek-reasoner': (0, types_1.createModel)('DeepSeek R1', {
|
|
12
|
+
'deepseek/deepseek-reasoner': (0, types_1.createModel)('DeepSeek Reasoner', {
|
|
31
13
|
reasoning: true,
|
|
32
14
|
releaseDate: '2025-01-20',
|
|
33
|
-
contextWindow:
|
|
15
|
+
contextWindow: 128000,
|
|
34
16
|
maxOutputTokens: 8192,
|
|
35
|
-
pricing: (0, types_1.createPricing)(0.
|
|
17
|
+
pricing: (0, types_1.createPricing)(0.00055, 0.0022),
|
|
36
18
|
}),
|
|
37
19
|
};
|
|
38
20
|
//# sourceMappingURL=deepseek.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/models/deepseek.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,cAAc,GAA8B;IAErD,wBAAwB,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QACnD,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/models/deepseek.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,cAAc,GAA8B;IAErD,wBAAwB,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QACnD,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,MAAM,CAAC;KAC1C,CAAC;IAGF,4BAA4B,EAAE,IAAA,mBAAW,EAAC,mBAAmB,EAAE;QAC3D,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,MAAM,CAAC;KAC1C,CAAC;CACL,CAAC","sourcesContent":["import { ModelInfo } from '../types';\nimport { createModel, createPricing } from './types';\n\nexport const deepseekModels: Record<string, ModelInfo> = {\n // DeepSeek V3.2 (Chat / Non-thinking mode)\n 'deepseek/deepseek-chat': createModel('DeepSeek Chat', {\n releaseDate: '2025-01-20',\n contextWindow: 128000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00027, 0.0011),\n }),\n\n // DeepSeek V3.2 (Reasoner / Thinking mode)\n 'deepseek/deepseek-reasoner': createModel('DeepSeek Reasoner', {\n reasoning: true,\n releaseDate: '2025-01-20',\n contextWindow: 128000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00055, 0.0022),\n }),\n};\n"]}
|
package/build/models/xai.js
CHANGED
|
@@ -3,34 +3,50 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.xaiModels = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
5
|
exports.xaiModels = {
|
|
6
|
-
'xai/grok-
|
|
6
|
+
'xai/grok-4': (0, types_1.createModel)('Grok 4', {
|
|
7
7
|
vision: true,
|
|
8
8
|
imageInput: true,
|
|
9
|
-
releaseDate: '2025-01
|
|
10
|
-
contextWindow:
|
|
11
|
-
maxOutputTokens:
|
|
12
|
-
|
|
9
|
+
releaseDate: '2025-07-01',
|
|
10
|
+
contextWindow: 131072,
|
|
11
|
+
maxOutputTokens: 16384,
|
|
12
|
+
reasoning: true,
|
|
13
|
+
pricing: (0, types_1.createPricing)(0.006, 0.018),
|
|
13
14
|
}),
|
|
14
|
-
'xai/grok-
|
|
15
|
+
'xai/grok-3': (0, types_1.createModel)('Grok 3', {
|
|
15
16
|
vision: true,
|
|
16
17
|
imageInput: true,
|
|
17
|
-
releaseDate: '
|
|
18
|
-
contextWindow:
|
|
18
|
+
releaseDate: '2025-02-01',
|
|
19
|
+
contextWindow: 131072,
|
|
19
20
|
maxOutputTokens: 8192,
|
|
20
|
-
pricing: (0, types_1.createPricing)(0.
|
|
21
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
21
22
|
}),
|
|
22
|
-
'xai/grok-
|
|
23
|
+
'xai/grok-3-fast': (0, types_1.createModel)('Grok 3 Fast', {
|
|
23
24
|
vision: true,
|
|
24
25
|
imageInput: true,
|
|
25
|
-
releaseDate: '
|
|
26
|
-
contextWindow:
|
|
26
|
+
releaseDate: '2025-02-01',
|
|
27
|
+
contextWindow: 131072,
|
|
28
|
+
maxOutputTokens: 8192,
|
|
29
|
+
pricing: (0, types_1.createPricing)(0.005, 0.025),
|
|
30
|
+
}),
|
|
31
|
+
'xai/grok-3-mini': (0, types_1.createModel)('Grok 3 Mini', {
|
|
32
|
+
reasoning: true,
|
|
33
|
+
releaseDate: '2025-02-01',
|
|
34
|
+
contextWindow: 131072,
|
|
35
|
+
maxOutputTokens: 8192,
|
|
36
|
+
pricing: (0, types_1.createPricing)(0.0003, 0.0005),
|
|
37
|
+
}),
|
|
38
|
+
'xai/grok-3-mini-fast': (0, types_1.createModel)('Grok 3 Mini Fast', {
|
|
39
|
+
reasoning: true,
|
|
40
|
+
releaseDate: '2025-02-01',
|
|
41
|
+
contextWindow: 131072,
|
|
27
42
|
maxOutputTokens: 8192,
|
|
43
|
+
pricing: (0, types_1.createPricing)(0.0006, 0.004),
|
|
28
44
|
}),
|
|
29
45
|
'xai/grok-2-1212': (0, types_1.createModel)('Grok 2 (12-12)', {
|
|
30
46
|
vision: true,
|
|
31
47
|
imageInput: true,
|
|
32
48
|
releaseDate: '2024-12-12',
|
|
33
|
-
contextWindow:
|
|
49
|
+
contextWindow: 131072,
|
|
34
50
|
maxOutputTokens: 8192,
|
|
35
51
|
pricing: (0, types_1.createPricing)(0.002, 0.01),
|
|
36
52
|
}),
|
package/build/models/xai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xai.js","sourceRoot":"","sources":["../../src/models/xai.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,SAAS,GAA8B;IAEnD,YAAY,EAAE,IAAA,mBAAW,EAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,IAAI;QACZ,UAAU,EA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;QACvD,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,MAAM,EAAE,KAAK,CAAC;KACrC,CAAC;IAGF,iBAAiB,EAAE,IAAA,mBAAW,EAAC,gBAAgB,EAAE;QAChD,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,IAAI,CAAC;KACnC,CAAC;CACF,CAAC","sourcesContent":["import { ModelInfo } from '../types';\nimport { createModel, createPricing } from './types';\n\nexport const xaiModels: Record<string, ModelInfo> = {\n\t// Grok 4\n\t'xai/grok-4': createModel('Grok 4', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-07-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 16384,\n\t\treasoning: true,\n\t\tpricing: createPricing(0.006, 0.018),\n\t}),\n\n\t// Grok 3\n\t'xai/grok-3': createModel('Grok 3', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\n\t// Grok 3 Fast\n\t'xai/grok-3-fast': createModel('Grok 3 Fast', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.005, 0.025),\n\t}),\n\n\t// Grok 3 Mini\n\t'xai/grok-3-mini': createModel('Grok 3 Mini', {\n\t\treasoning: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.0003, 0.0005),\n\t}),\n\n\t// Grok 3 Mini Fast\n\t'xai/grok-3-mini-fast': createModel('Grok 3 Mini Fast', {\n\t\treasoning: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.0006, 0.004),\n\t}),\n\n\t// Legacy\n\t'xai/grok-2-1212': createModel('Grok 2 (12-12)', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-12',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.002, 0.01),\n\t}),\n};\n"]}
|
package/package.json
CHANGED
package/src/models/deepseek.ts
CHANGED
|
@@ -2,38 +2,20 @@ import { ModelInfo } from '../types';
|
|
|
2
2
|
import { createModel, createPricing } from './types';
|
|
3
3
|
|
|
4
4
|
export const deepseekModels: Record<string, ModelInfo> = {
|
|
5
|
-
// DeepSeek V3
|
|
5
|
+
// DeepSeek V3.2 (Chat / Non-thinking mode)
|
|
6
6
|
'deepseek/deepseek-chat': createModel('DeepSeek Chat', {
|
|
7
7
|
releaseDate: '2025-01-20',
|
|
8
|
-
contextWindow:
|
|
8
|
+
contextWindow: 128000,
|
|
9
9
|
maxOutputTokens: 8192,
|
|
10
|
-
pricing: createPricing(0.
|
|
11
|
-
}),
|
|
12
|
-
'deepseek/deepseek-v3': createModel('DeepSeek V3', {
|
|
13
|
-
releaseDate: '2024-12-26',
|
|
14
|
-
contextWindow: 64000,
|
|
15
|
-
maxOutputTokens: 8192,
|
|
16
|
-
pricing: createPricing(0.00028, 0.00042),
|
|
17
|
-
}),
|
|
18
|
-
'deepseek/deepseek-v3-1': createModel('DeepSeek V3.1', {
|
|
19
|
-
releaseDate: '2025-01-10',
|
|
20
|
-
contextWindow: 64000,
|
|
21
|
-
maxOutputTokens: 8192,
|
|
22
|
-
pricing: createPricing(0.00028, 0.00042),
|
|
23
|
-
}),
|
|
24
|
-
'deepseek/deepseek-v3-2': createModel('DeepSeek V3.2', {
|
|
25
|
-
releaseDate: '2025-01-20',
|
|
26
|
-
contextWindow: 64000,
|
|
27
|
-
maxOutputTokens: 8192,
|
|
28
|
-
pricing: createPricing(0.00028, 0.00042),
|
|
10
|
+
pricing: createPricing(0.00027, 0.0011),
|
|
29
11
|
}),
|
|
30
12
|
|
|
31
|
-
// DeepSeek
|
|
32
|
-
'deepseek/deepseek-reasoner': createModel('DeepSeek
|
|
13
|
+
// DeepSeek V3.2 (Reasoner / Thinking mode)
|
|
14
|
+
'deepseek/deepseek-reasoner': createModel('DeepSeek Reasoner', {
|
|
33
15
|
reasoning: true,
|
|
34
16
|
releaseDate: '2025-01-20',
|
|
35
|
-
contextWindow:
|
|
17
|
+
contextWindow: 128000,
|
|
36
18
|
maxOutputTokens: 8192,
|
|
37
|
-
pricing: createPricing(0.
|
|
19
|
+
pricing: createPricing(0.00055, 0.0022),
|
|
38
20
|
}),
|
|
39
21
|
};
|
package/src/models/xai.ts
CHANGED
|
@@ -2,41 +2,61 @@ import { ModelInfo } from '../types';
|
|
|
2
2
|
import { createModel, createPricing } from './types';
|
|
3
3
|
|
|
4
4
|
export const xaiModels: Record<string, ModelInfo> = {
|
|
5
|
-
// Grok
|
|
6
|
-
'xai/grok-
|
|
5
|
+
// Grok 4
|
|
6
|
+
'xai/grok-4': createModel('Grok 4', {
|
|
7
7
|
vision: true,
|
|
8
8
|
imageInput: true,
|
|
9
|
-
releaseDate: '2025-01
|
|
10
|
-
contextWindow:
|
|
11
|
-
maxOutputTokens:
|
|
12
|
-
|
|
9
|
+
releaseDate: '2025-07-01',
|
|
10
|
+
contextWindow: 131072,
|
|
11
|
+
maxOutputTokens: 16384,
|
|
12
|
+
reasoning: true,
|
|
13
|
+
pricing: createPricing(0.006, 0.018),
|
|
13
14
|
}),
|
|
14
15
|
|
|
15
|
-
// Grok
|
|
16
|
-
'xai/grok-
|
|
16
|
+
// Grok 3
|
|
17
|
+
'xai/grok-3': createModel('Grok 3', {
|
|
17
18
|
vision: true,
|
|
18
19
|
imageInput: true,
|
|
19
|
-
releaseDate: '
|
|
20
|
-
contextWindow:
|
|
20
|
+
releaseDate: '2025-02-01',
|
|
21
|
+
contextWindow: 131072,
|
|
21
22
|
maxOutputTokens: 8192,
|
|
22
|
-
pricing: createPricing(0.
|
|
23
|
+
pricing: createPricing(0.003, 0.015),
|
|
23
24
|
}),
|
|
24
25
|
|
|
25
|
-
// Grok
|
|
26
|
-
'xai/grok-
|
|
26
|
+
// Grok 3 Fast
|
|
27
|
+
'xai/grok-3-fast': createModel('Grok 3 Fast', {
|
|
27
28
|
vision: true,
|
|
28
29
|
imageInput: true,
|
|
29
|
-
releaseDate: '
|
|
30
|
-
contextWindow:
|
|
30
|
+
releaseDate: '2025-02-01',
|
|
31
|
+
contextWindow: 131072,
|
|
32
|
+
maxOutputTokens: 8192,
|
|
33
|
+
pricing: createPricing(0.005, 0.025),
|
|
34
|
+
}),
|
|
35
|
+
|
|
36
|
+
// Grok 3 Mini
|
|
37
|
+
'xai/grok-3-mini': createModel('Grok 3 Mini', {
|
|
38
|
+
reasoning: true,
|
|
39
|
+
releaseDate: '2025-02-01',
|
|
40
|
+
contextWindow: 131072,
|
|
41
|
+
maxOutputTokens: 8192,
|
|
42
|
+
pricing: createPricing(0.0003, 0.0005),
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
// Grok 3 Mini Fast
|
|
46
|
+
'xai/grok-3-mini-fast': createModel('Grok 3 Mini Fast', {
|
|
47
|
+
reasoning: true,
|
|
48
|
+
releaseDate: '2025-02-01',
|
|
49
|
+
contextWindow: 131072,
|
|
31
50
|
maxOutputTokens: 8192,
|
|
51
|
+
pricing: createPricing(0.0006, 0.004),
|
|
32
52
|
}),
|
|
33
53
|
|
|
34
|
-
// Legacy
|
|
54
|
+
// Legacy
|
|
35
55
|
'xai/grok-2-1212': createModel('Grok 2 (12-12)', {
|
|
36
56
|
vision: true,
|
|
37
57
|
imageInput: true,
|
|
38
58
|
releaseDate: '2024-12-12',
|
|
39
|
-
contextWindow:
|
|
59
|
+
contextWindow: 131072,
|
|
40
60
|
maxOutputTokens: 8192,
|
|
41
61
|
pricing: createPricing(0.002, 0.01),
|
|
42
62
|
}),
|