@earendil-works/pi-ai 0.80.9 → 0.80.10
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 +1 -1
- package/dist/models.generated.d.ts +70 -110
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/providers/kimi-coding.models.d.ts +26 -0
- package/dist/providers/kimi-coding.models.d.ts.map +1 -1
- package/dist/providers/kimi-coding.models.js +6 -0
- package/dist/providers/kimi-coding.models.js.map +1 -1
- package/dist/providers/moonshotai-cn.models.d.ts.map +1 -1
- package/dist/providers/moonshotai-cn.models.js +3 -3
- package/dist/providers/moonshotai-cn.models.js.map +1 -1
- package/dist/providers/moonshotai.models.d.ts.map +1 -1
- package/dist/providers/moonshotai.models.js +3 -3
- package/dist/providers/moonshotai.models.js.map +1 -1
- package/dist/providers/opencode-go.models.d.ts +44 -0
- package/dist/providers/opencode-go.models.d.ts.map +1 -1
- package/dist/providers/opencode-go.models.js +36 -0
- package/dist/providers/opencode-go.models.js.map +1 -1
- package/dist/providers/openrouter.models.d.ts.map +1 -1
- package/dist/providers/openrouter.models.js +6 -6
- package/dist/providers/openrouter.models.js.map +1 -1
- package/dist/providers/xai.models.d.ts +0 -110
- package/dist/providers/xai.models.d.ts.map +1 -1
- package/dist/providers/xai.models.js +0 -90
- package/dist/providers/xai.models.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,92 +1,4 @@
|
|
|
1
1
|
export declare const XAI_MODELS: {
|
|
2
|
-
readonly "grok-3": {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
api: "openai-completions";
|
|
6
|
-
provider: string;
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
compat: {
|
|
9
|
-
supportsStore: false;
|
|
10
|
-
supportsDeveloperRole: false;
|
|
11
|
-
supportsReasoningEffort: false;
|
|
12
|
-
};
|
|
13
|
-
reasoning: false;
|
|
14
|
-
input: "text"[];
|
|
15
|
-
cost: {
|
|
16
|
-
input: number;
|
|
17
|
-
output: number;
|
|
18
|
-
cacheRead: number;
|
|
19
|
-
cacheWrite: number;
|
|
20
|
-
};
|
|
21
|
-
contextWindow: number;
|
|
22
|
-
maxTokens: number;
|
|
23
|
-
};
|
|
24
|
-
readonly "grok-3-fast": {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
api: "openai-completions";
|
|
28
|
-
provider: string;
|
|
29
|
-
baseUrl: string;
|
|
30
|
-
compat: {
|
|
31
|
-
supportsStore: false;
|
|
32
|
-
supportsDeveloperRole: false;
|
|
33
|
-
supportsReasoningEffort: false;
|
|
34
|
-
};
|
|
35
|
-
reasoning: false;
|
|
36
|
-
input: "text"[];
|
|
37
|
-
cost: {
|
|
38
|
-
input: number;
|
|
39
|
-
output: number;
|
|
40
|
-
cacheRead: number;
|
|
41
|
-
cacheWrite: number;
|
|
42
|
-
};
|
|
43
|
-
contextWindow: number;
|
|
44
|
-
maxTokens: number;
|
|
45
|
-
};
|
|
46
|
-
readonly "grok-4.20-0309-non-reasoning": {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
api: "openai-completions";
|
|
50
|
-
provider: string;
|
|
51
|
-
baseUrl: string;
|
|
52
|
-
compat: {
|
|
53
|
-
supportsStore: false;
|
|
54
|
-
supportsDeveloperRole: false;
|
|
55
|
-
supportsReasoningEffort: false;
|
|
56
|
-
};
|
|
57
|
-
reasoning: false;
|
|
58
|
-
input: ("image" | "text")[];
|
|
59
|
-
cost: {
|
|
60
|
-
input: number;
|
|
61
|
-
output: number;
|
|
62
|
-
cacheRead: number;
|
|
63
|
-
cacheWrite: number;
|
|
64
|
-
};
|
|
65
|
-
contextWindow: number;
|
|
66
|
-
maxTokens: number;
|
|
67
|
-
};
|
|
68
|
-
readonly "grok-4.20-0309-reasoning": {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
api: "openai-completions";
|
|
72
|
-
provider: string;
|
|
73
|
-
baseUrl: string;
|
|
74
|
-
compat: {
|
|
75
|
-
supportsStore: false;
|
|
76
|
-
supportsDeveloperRole: false;
|
|
77
|
-
supportsReasoningEffort: false;
|
|
78
|
-
};
|
|
79
|
-
reasoning: true;
|
|
80
|
-
input: ("image" | "text")[];
|
|
81
|
-
cost: {
|
|
82
|
-
input: number;
|
|
83
|
-
output: number;
|
|
84
|
-
cacheRead: number;
|
|
85
|
-
cacheWrite: number;
|
|
86
|
-
};
|
|
87
|
-
contextWindow: number;
|
|
88
|
-
maxTokens: number;
|
|
89
|
-
};
|
|
90
2
|
readonly "grok-4.3": {
|
|
91
3
|
id: string;
|
|
92
4
|
name: string;
|
|
@@ -155,27 +67,5 @@ export declare const XAI_MODELS: {
|
|
|
155
67
|
contextWindow: number;
|
|
156
68
|
maxTokens: number;
|
|
157
69
|
};
|
|
158
|
-
readonly "grok-code-fast-1": {
|
|
159
|
-
id: string;
|
|
160
|
-
name: string;
|
|
161
|
-
api: "openai-completions";
|
|
162
|
-
provider: string;
|
|
163
|
-
baseUrl: string;
|
|
164
|
-
compat: {
|
|
165
|
-
supportsStore: false;
|
|
166
|
-
supportsDeveloperRole: false;
|
|
167
|
-
supportsReasoningEffort: false;
|
|
168
|
-
};
|
|
169
|
-
reasoning: false;
|
|
170
|
-
input: "text"[];
|
|
171
|
-
cost: {
|
|
172
|
-
input: number;
|
|
173
|
-
output: number;
|
|
174
|
-
cacheRead: number;
|
|
175
|
-
cacheWrite: number;
|
|
176
|
-
};
|
|
177
|
-
contextWindow: number;
|
|
178
|
-
maxTokens: number;
|
|
179
|
-
};
|
|
180
70
|
};
|
|
181
71
|
//# sourceMappingURL=xai.models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xai.models.d.ts","sourceRoot":"","sources":["../../src/providers/xai.models.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"xai.models.d.ts","sourceRoot":"","sources":["../../src/providers/xai.models.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDb,CAAC","sourcesContent":["// This file is auto-generated by scripts/generate-models.ts\n// Do not edit manually - run 'npm run generate-models' to update\n\nimport type { Model } from \"../types.ts\";\n\nexport const XAI_MODELS = {\n\t\"grok-4.3\": {\n\t\tid: \"grok-4.3\",\n\t\tname: \"Grok 4.3\",\n\t\tapi: \"openai-completions\",\n\t\tprovider: \"xai\",\n\t\tbaseUrl: \"https://api.x.ai/v1\",\n\t\tcompat: {\"supportsStore\":false,\"supportsDeveloperRole\":false,\"supportsReasoningEffort\":false},\n\t\treasoning: true,\n\t\tinput: [\"text\", \"image\"],\n\t\tcost: {\n\t\t\tinput: 1.25,\n\t\t\toutput: 2.5,\n\t\t\tcacheRead: 0.2,\n\t\t\tcacheWrite: 0,\n\t\t},\n\t\tcontextWindow: 1000000,\n\t\tmaxTokens: 30000,\n\t} satisfies Model<\"openai-completions\">,\n\t\"grok-4.5\": {\n\t\tid: \"grok-4.5\",\n\t\tname: \"Grok 4.5\",\n\t\tapi: \"openai-responses\",\n\t\tprovider: \"xai\",\n\t\tbaseUrl: \"https://api.x.ai/v1\",\n\t\tcompat: {\"supportsLongCacheRetention\":false},\n\t\treasoning: true,\n\t\tthinkingLevelMap: {\"off\":null,\"minimal\":null},\n\t\tinput: [\"text\", \"image\"],\n\t\tcost: {\n\t\t\tinput: 2,\n\t\t\toutput: 6,\n\t\t\tcacheRead: 0.5,\n\t\t\tcacheWrite: 0,\n\t\t},\n\t\tcontextWindow: 500000,\n\t\tmaxTokens: 500000,\n\t} satisfies Model<\"openai-responses\">,\n\t\"grok-build-0.1\": {\n\t\tid: \"grok-build-0.1\",\n\t\tname: \"Grok Build 0.1\",\n\t\tapi: \"openai-completions\",\n\t\tprovider: \"xai\",\n\t\tbaseUrl: \"https://api.x.ai/v1\",\n\t\tcompat: {\"supportsStore\":false,\"supportsDeveloperRole\":false,\"supportsReasoningEffort\":false},\n\t\treasoning: true,\n\t\tinput: [\"text\", \"image\"],\n\t\tcost: {\n\t\t\tinput: 1,\n\t\t\toutput: 2,\n\t\t\tcacheRead: 0.2,\n\t\t\tcacheWrite: 0,\n\t\t},\n\t\tcontextWindow: 256000,\n\t\tmaxTokens: 256000,\n\t} satisfies Model<\"openai-completions\">,\n} as const;\n"]}
|
|
@@ -1,78 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
export const XAI_MODELS = {
|
|
4
|
-
"grok-3": {
|
|
5
|
-
id: "grok-3",
|
|
6
|
-
name: "Grok 3",
|
|
7
|
-
api: "openai-completions",
|
|
8
|
-
provider: "xai",
|
|
9
|
-
baseUrl: "https://api.x.ai/v1",
|
|
10
|
-
compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
|
|
11
|
-
reasoning: false,
|
|
12
|
-
input: ["text"],
|
|
13
|
-
cost: {
|
|
14
|
-
input: 3,
|
|
15
|
-
output: 15,
|
|
16
|
-
cacheRead: 0.75,
|
|
17
|
-
cacheWrite: 0,
|
|
18
|
-
},
|
|
19
|
-
contextWindow: 131072,
|
|
20
|
-
maxTokens: 8192,
|
|
21
|
-
},
|
|
22
|
-
"grok-3-fast": {
|
|
23
|
-
id: "grok-3-fast",
|
|
24
|
-
name: "Grok 3 Fast",
|
|
25
|
-
api: "openai-completions",
|
|
26
|
-
provider: "xai",
|
|
27
|
-
baseUrl: "https://api.x.ai/v1",
|
|
28
|
-
compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
|
|
29
|
-
reasoning: false,
|
|
30
|
-
input: ["text"],
|
|
31
|
-
cost: {
|
|
32
|
-
input: 5,
|
|
33
|
-
output: 25,
|
|
34
|
-
cacheRead: 1.25,
|
|
35
|
-
cacheWrite: 0,
|
|
36
|
-
},
|
|
37
|
-
contextWindow: 131072,
|
|
38
|
-
maxTokens: 8192,
|
|
39
|
-
},
|
|
40
|
-
"grok-4.20-0309-non-reasoning": {
|
|
41
|
-
id: "grok-4.20-0309-non-reasoning",
|
|
42
|
-
name: "Grok 4.20 (Non-Reasoning)",
|
|
43
|
-
api: "openai-completions",
|
|
44
|
-
provider: "xai",
|
|
45
|
-
baseUrl: "https://api.x.ai/v1",
|
|
46
|
-
compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
|
|
47
|
-
reasoning: false,
|
|
48
|
-
input: ["text", "image"],
|
|
49
|
-
cost: {
|
|
50
|
-
input: 1.25,
|
|
51
|
-
output: 2.5,
|
|
52
|
-
cacheRead: 0.2,
|
|
53
|
-
cacheWrite: 0,
|
|
54
|
-
},
|
|
55
|
-
contextWindow: 1000000,
|
|
56
|
-
maxTokens: 30000,
|
|
57
|
-
},
|
|
58
|
-
"grok-4.20-0309-reasoning": {
|
|
59
|
-
id: "grok-4.20-0309-reasoning",
|
|
60
|
-
name: "Grok 4.20 (Reasoning)",
|
|
61
|
-
api: "openai-completions",
|
|
62
|
-
provider: "xai",
|
|
63
|
-
baseUrl: "https://api.x.ai/v1",
|
|
64
|
-
compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
|
|
65
|
-
reasoning: true,
|
|
66
|
-
input: ["text", "image"],
|
|
67
|
-
cost: {
|
|
68
|
-
input: 1.25,
|
|
69
|
-
output: 2.5,
|
|
70
|
-
cacheRead: 0.2,
|
|
71
|
-
cacheWrite: 0,
|
|
72
|
-
},
|
|
73
|
-
contextWindow: 1000000,
|
|
74
|
-
maxTokens: 30000,
|
|
75
|
-
},
|
|
76
4
|
"grok-4.3": {
|
|
77
5
|
id: "grok-4.3",
|
|
78
6
|
name: "Grok 4.3",
|
|
@@ -128,23 +56,5 @@ export const XAI_MODELS = {
|
|
|
128
56
|
contextWindow: 256000,
|
|
129
57
|
maxTokens: 256000,
|
|
130
58
|
},
|
|
131
|
-
"grok-code-fast-1": {
|
|
132
|
-
id: "grok-code-fast-1",
|
|
133
|
-
name: "Grok Code Fast 1",
|
|
134
|
-
api: "openai-completions",
|
|
135
|
-
provider: "xai",
|
|
136
|
-
baseUrl: "https://api.x.ai/v1",
|
|
137
|
-
compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false },
|
|
138
|
-
reasoning: false,
|
|
139
|
-
input: ["text"],
|
|
140
|
-
cost: {
|
|
141
|
-
input: 0.2,
|
|
142
|
-
output: 1.5,
|
|
143
|
-
cacheRead: 0.02,
|
|
144
|
-
cacheWrite: 0,
|
|
145
|
-
},
|
|
146
|
-
contextWindow: 32768,
|
|
147
|
-
maxTokens: 8192,
|
|
148
|
-
},
|
|
149
59
|
};
|
|
150
60
|
//# sourceMappingURL=xai.models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xai.models.js","sourceRoot":"","sources":["../../src/providers/xai.models.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,iEAAiE;AAIjE,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,
|
|
1
|
+
{"version":3,"file":"xai.models.js","sourceRoot":"","sources":["../../src/providers/xai.models.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,iEAAiE;AAIjE,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,UAAU,EAAE;QACX,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,oBAAoB;QACzB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,qBAAqB;QAC9B,MAAM,EAAE,EAAC,eAAe,EAAC,KAAK,EAAC,uBAAuB,EAAC,KAAK,EAAC,yBAAyB,EAAC,KAAK,EAAC;QAC7F,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QACxB,IAAI,EAAE;YACL,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,GAAG;YACX,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,CAAC;SACb;QACD,aAAa,EAAE,OAAO;QACtB,SAAS,EAAE,KAAK;KACsB;IACvC,UAAU,EAAE;QACX,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,kBAAkB;QACvB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,qBAAqB;QAC9B,MAAM,EAAE,EAAC,4BAA4B,EAAC,KAAK,EAAC;QAC5C,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,EAAC,KAAK,EAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC;QAC7C,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QACxB,IAAI,EAAE;YACL,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,CAAC;SACb;QACD,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE,MAAM;KACmB;IACrC,gBAAgB,EAAE;QACjB,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,oBAAoB;QACzB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,qBAAqB;QAC9B,MAAM,EAAE,EAAC,eAAe,EAAC,KAAK,EAAC,uBAAuB,EAAC,KAAK,EAAC,yBAAyB,EAAC,KAAK,EAAC;QAC7F,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QACxB,IAAI,EAAE;YACL,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,CAAC;SACb;QACD,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE,MAAM;KACqB;CAC9B,CAAC","sourcesContent":["// This file is auto-generated by scripts/generate-models.ts\n// Do not edit manually - run 'npm run generate-models' to update\n\nimport type { Model } from \"../types.ts\";\n\nexport const XAI_MODELS = {\n\t\"grok-4.3\": {\n\t\tid: \"grok-4.3\",\n\t\tname: \"Grok 4.3\",\n\t\tapi: \"openai-completions\",\n\t\tprovider: \"xai\",\n\t\tbaseUrl: \"https://api.x.ai/v1\",\n\t\tcompat: {\"supportsStore\":false,\"supportsDeveloperRole\":false,\"supportsReasoningEffort\":false},\n\t\treasoning: true,\n\t\tinput: [\"text\", \"image\"],\n\t\tcost: {\n\t\t\tinput: 1.25,\n\t\t\toutput: 2.5,\n\t\t\tcacheRead: 0.2,\n\t\t\tcacheWrite: 0,\n\t\t},\n\t\tcontextWindow: 1000000,\n\t\tmaxTokens: 30000,\n\t} satisfies Model<\"openai-completions\">,\n\t\"grok-4.5\": {\n\t\tid: \"grok-4.5\",\n\t\tname: \"Grok 4.5\",\n\t\tapi: \"openai-responses\",\n\t\tprovider: \"xai\",\n\t\tbaseUrl: \"https://api.x.ai/v1\",\n\t\tcompat: {\"supportsLongCacheRetention\":false},\n\t\treasoning: true,\n\t\tthinkingLevelMap: {\"off\":null,\"minimal\":null},\n\t\tinput: [\"text\", \"image\"],\n\t\tcost: {\n\t\t\tinput: 2,\n\t\t\toutput: 6,\n\t\t\tcacheRead: 0.5,\n\t\t\tcacheWrite: 0,\n\t\t},\n\t\tcontextWindow: 500000,\n\t\tmaxTokens: 500000,\n\t} satisfies Model<\"openai-responses\">,\n\t\"grok-build-0.1\": {\n\t\tid: \"grok-build-0.1\",\n\t\tname: \"Grok Build 0.1\",\n\t\tapi: \"openai-completions\",\n\t\tprovider: \"xai\",\n\t\tbaseUrl: \"https://api.x.ai/v1\",\n\t\tcompat: {\"supportsStore\":false,\"supportsDeveloperRole\":false,\"supportsReasoningEffort\":false},\n\t\treasoning: true,\n\t\tinput: [\"text\", \"image\"],\n\t\tcost: {\n\t\t\tinput: 1,\n\t\t\toutput: 2,\n\t\t\tcacheRead: 0.2,\n\t\t\tcacheWrite: 0,\n\t\t},\n\t\tcontextWindow: 256000,\n\t\tmaxTokens: 256000,\n\t} satisfies Model<\"openai-completions\">,\n} as const;\n"]}
|