@mariozechner/pi-ai 0.65.2 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/models.generated.d.ts +147 -42
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +185 -82
- package/dist/models.generated.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"","sourcesContent":["#!/usr/bin/env node\n\nimport {
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"","sourcesContent":["#!/usr/bin/env node\n\nimport { createInterface } from \"node:readline\";\nimport { existsSync, readFileSync, writeFileSync } from \"fs\";\nimport { getOAuthProvider, getOAuthProviders } from \"./utils/oauth/index.js\";\nimport type { OAuthCredentials, OAuthProviderId } from \"./utils/oauth/types.js\";\n\nconst AUTH_FILE = \"auth.json\";\nconst PROVIDERS = getOAuthProviders();\n\nfunction prompt(rl: ReturnType<typeof createInterface>, question: string): Promise<string> {\n\treturn new Promise((resolve) => rl.question(question, resolve));\n}\n\nfunction loadAuth(): Record<string, { type: \"oauth\" } & OAuthCredentials> {\n\tif (!existsSync(AUTH_FILE)) return {};\n\ttry {\n\t\treturn JSON.parse(readFileSync(AUTH_FILE, \"utf-8\"));\n\t} catch {\n\t\treturn {};\n\t}\n}\n\nfunction saveAuth(auth: Record<string, { type: \"oauth\" } & OAuthCredentials>): void {\n\twriteFileSync(AUTH_FILE, JSON.stringify(auth, null, 2), \"utf-8\");\n}\n\nasync function login(providerId: OAuthProviderId): Promise<void> {\n\tconst provider = getOAuthProvider(providerId);\n\tif (!provider) {\n\t\tconsole.error(`Unknown provider: ${providerId}`);\n\t\tprocess.exit(1);\n\t}\n\n\tconst rl = createInterface({ input: process.stdin, output: process.stdout });\n\tconst promptFn = (msg: string) => prompt(rl, `${msg} `);\n\n\ttry {\n\t\tconst credentials = await provider.login({\n\t\t\tonAuth: (info) => {\n\t\t\t\tconsole.log(`\\nOpen this URL in your browser:\\n${info.url}`);\n\t\t\t\tif (info.instructions) console.log(info.instructions);\n\t\t\t\tconsole.log();\n\t\t\t},\n\t\t\tonPrompt: async (p) => {\n\t\t\t\treturn await promptFn(`${p.message}${p.placeholder ? ` (${p.placeholder})` : \"\"}:`);\n\t\t\t},\n\t\t\tonProgress: (msg) => console.log(msg),\n\t\t});\n\n\t\tconst auth = loadAuth();\n\t\tauth[providerId] = { type: \"oauth\", ...credentials };\n\t\tsaveAuth(auth);\n\n\t\tconsole.log(`\\nCredentials saved to ${AUTH_FILE}`);\n\t} finally {\n\t\trl.close();\n\t}\n}\n\nasync function main(): Promise<void> {\n\tconst args = process.argv.slice(2);\n\tconst command = args[0];\n\n\tif (!command || command === \"help\" || command === \"--help\" || command === \"-h\") {\n\t\tconst providerList = PROVIDERS.map((p) => ` ${p.id.padEnd(20)} ${p.name}`).join(\"\\n\");\n\t\tconsole.log(`Usage: npx @mariozechner/pi-ai <command> [provider]\n\nCommands:\n login [provider] Login to an OAuth provider\n list List available providers\n\nProviders:\n${providerList}\n\nExamples:\n npx @mariozechner/pi-ai login # interactive provider selection\n npx @mariozechner/pi-ai login anthropic # login to specific provider\n npx @mariozechner/pi-ai list # list providers\n`);\n\t\treturn;\n\t}\n\n\tif (command === \"list\") {\n\t\tconsole.log(\"Available OAuth providers:\\n\");\n\t\tfor (const p of PROVIDERS) {\n\t\t\tconsole.log(` ${p.id.padEnd(20)} ${p.name}`);\n\t\t}\n\t\treturn;\n\t}\n\n\tif (command === \"login\") {\n\t\tlet provider = args[1] as OAuthProviderId | undefined;\n\n\t\tif (!provider) {\n\t\t\tconst rl = createInterface({ input: process.stdin, output: process.stdout });\n\t\t\tconsole.log(\"Select a provider:\\n\");\n\t\t\tfor (let i = 0; i < PROVIDERS.length; i++) {\n\t\t\t\tconsole.log(` ${i + 1}. ${PROVIDERS[i].name}`);\n\t\t\t}\n\t\t\tconsole.log();\n\n\t\t\tconst choice = await prompt(rl, `Enter number (1-${PROVIDERS.length}): `);\n\t\t\trl.close();\n\n\t\t\tconst index = parseInt(choice, 10) - 1;\n\t\t\tif (index < 0 || index >= PROVIDERS.length) {\n\t\t\t\tconsole.error(\"Invalid selection\");\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\t\t\tprovider = PROVIDERS[index].id;\n\t\t}\n\n\t\tif (!PROVIDERS.some((p) => p.id === provider)) {\n\t\t\tconsole.error(`Unknown provider: ${provider}`);\n\t\t\tconsole.error(`Use 'npx @mariozechner/pi-ai list' to see available providers`);\n\t\t\tprocess.exit(1);\n\t\t}\n\n\t\tconsole.log(`Logging in to ${provider}...`);\n\t\tawait login(provider);\n\t\treturn;\n\t}\n\n\tconsole.error(`Unknown command: ${command}`);\n\tconsole.error(`Use 'npx @mariozechner/pi-ai --help' for usage`);\n\tprocess.exit(1);\n}\n\nmain().catch((err) => {\n\tconsole.error(\"Error:\", err.message);\n\tprocess.exit(1);\n});\n"]}
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createInterface } from "node:readline";
|
|
2
3
|
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
3
|
-
import { createInterface } from "readline";
|
|
4
4
|
import { getOAuthProvider, getOAuthProviders } from "./utils/oauth/index.js";
|
|
5
5
|
const AUTH_FILE = "auth.json";
|
|
6
6
|
const PROVIDERS = getOAuthProviders();
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/c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AAAA,CAChB;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC;IACrB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA,CAChB,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\n\nimport { createInterface } from \"node:readline\";\nimport { existsSync, readFileSync, writeFileSync } from \"fs\";\nimport { getOAuthProvider, getOAuthProviders } from \"./utils/oauth/index.js\";\nimport type { OAuthCredentials, OAuthProviderId } from \"./utils/oauth/types.js\";\n\nconst AUTH_FILE = \"auth.json\";\nconst PROVIDERS = getOAuthProviders();\n\nfunction prompt(rl: ReturnType<typeof createInterface>, question: string): Promise<string> {\n\treturn new Promise((resolve) => rl.question(question, resolve));\n}\n\nfunction loadAuth(): Record<string, { type: \"oauth\" } & OAuthCredentials> {\n\tif (!existsSync(AUTH_FILE)) return {};\n\ttry {\n\t\treturn JSON.parse(readFileSync(AUTH_FILE, \"utf-8\"));\n\t} catch {\n\t\treturn {};\n\t}\n}\n\nfunction saveAuth(auth: Record<string, { type: \"oauth\" } & OAuthCredentials>): void {\n\twriteFileSync(AUTH_FILE, JSON.stringify(auth, null, 2), \"utf-8\");\n}\n\nasync function login(providerId: OAuthProviderId): Promise<void> {\n\tconst provider = getOAuthProvider(providerId);\n\tif (!provider) {\n\t\tconsole.error(`Unknown provider: ${providerId}`);\n\t\tprocess.exit(1);\n\t}\n\n\tconst rl = createInterface({ input: process.stdin, output: process.stdout });\n\tconst promptFn = (msg: string) => prompt(rl, `${msg} `);\n\n\ttry {\n\t\tconst credentials = await provider.login({\n\t\t\tonAuth: (info) => {\n\t\t\t\tconsole.log(`\\nOpen this URL in your browser:\\n${info.url}`);\n\t\t\t\tif (info.instructions) console.log(info.instructions);\n\t\t\t\tconsole.log();\n\t\t\t},\n\t\t\tonPrompt: async (p) => {\n\t\t\t\treturn await promptFn(`${p.message}${p.placeholder ? ` (${p.placeholder})` : \"\"}:`);\n\t\t\t},\n\t\t\tonProgress: (msg) => console.log(msg),\n\t\t});\n\n\t\tconst auth = loadAuth();\n\t\tauth[providerId] = { type: \"oauth\", ...credentials };\n\t\tsaveAuth(auth);\n\n\t\tconsole.log(`\\nCredentials saved to ${AUTH_FILE}`);\n\t} finally {\n\t\trl.close();\n\t}\n}\n\nasync function main(): Promise<void> {\n\tconst args = process.argv.slice(2);\n\tconst command = args[0];\n\n\tif (!command || command === \"help\" || command === \"--help\" || command === \"-h\") {\n\t\tconst providerList = PROVIDERS.map((p) => ` ${p.id.padEnd(20)} ${p.name}`).join(\"\\n\");\n\t\tconsole.log(`Usage: npx @mariozechner/pi-ai <command> [provider]\n\nCommands:\n login [provider] Login to an OAuth provider\n list List available providers\n\nProviders:\n${providerList}\n\nExamples:\n npx @mariozechner/pi-ai login # interactive provider selection\n npx @mariozechner/pi-ai login anthropic # login to specific provider\n npx @mariozechner/pi-ai list # list providers\n`);\n\t\treturn;\n\t}\n\n\tif (command === \"list\") {\n\t\tconsole.log(\"Available OAuth providers:\\n\");\n\t\tfor (const p of PROVIDERS) {\n\t\t\tconsole.log(` ${p.id.padEnd(20)} ${p.name}`);\n\t\t}\n\t\treturn;\n\t}\n\n\tif (command === \"login\") {\n\t\tlet provider = args[1] as OAuthProviderId | undefined;\n\n\t\tif (!provider) {\n\t\t\tconst rl = createInterface({ input: process.stdin, output: process.stdout });\n\t\t\tconsole.log(\"Select a provider:\\n\");\n\t\t\tfor (let i = 0; i < PROVIDERS.length; i++) {\n\t\t\t\tconsole.log(` ${i + 1}. ${PROVIDERS[i].name}`);\n\t\t\t}\n\t\t\tconsole.log();\n\n\t\t\tconst choice = await prompt(rl, `Enter number (1-${PROVIDERS.length}): `);\n\t\t\trl.close();\n\n\t\t\tconst index = parseInt(choice, 10) - 1;\n\t\t\tif (index < 0 || index >= PROVIDERS.length) {\n\t\t\t\tconsole.error(\"Invalid selection\");\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\t\t\tprovider = PROVIDERS[index].id;\n\t\t}\n\n\t\tif (!PROVIDERS.some((p) => p.id === provider)) {\n\t\t\tconsole.error(`Unknown provider: ${provider}`);\n\t\t\tconsole.error(`Use 'npx @mariozechner/pi-ai list' to see available providers`);\n\t\t\tprocess.exit(1);\n\t\t}\n\n\t\tconsole.log(`Logging in to ${provider}...`);\n\t\tawait login(provider);\n\t\treturn;\n\t}\n\n\tconsole.error(`Unknown command: ${command}`);\n\tconsole.error(`Use 'npx @mariozechner/pi-ai --help' for usage`);\n\tprocess.exit(1);\n}\n\nmain().catch((err) => {\n\tconsole.error(\"Error:\", err.message);\n\tprocess.exit(1);\n});\n"]}
|
|
@@ -1207,6 +1207,23 @@ export declare const MODELS: {
|
|
|
1207
1207
|
contextWindow: number;
|
|
1208
1208
|
maxTokens: number;
|
|
1209
1209
|
};
|
|
1210
|
+
readonly "qwen.qwen3-coder-next": {
|
|
1211
|
+
id: string;
|
|
1212
|
+
name: string;
|
|
1213
|
+
api: "bedrock-converse-stream";
|
|
1214
|
+
provider: string;
|
|
1215
|
+
baseUrl: string;
|
|
1216
|
+
reasoning: true;
|
|
1217
|
+
input: "text"[];
|
|
1218
|
+
cost: {
|
|
1219
|
+
input: number;
|
|
1220
|
+
output: number;
|
|
1221
|
+
cacheRead: number;
|
|
1222
|
+
cacheWrite: number;
|
|
1223
|
+
};
|
|
1224
|
+
contextWindow: number;
|
|
1225
|
+
maxTokens: number;
|
|
1226
|
+
};
|
|
1210
1227
|
readonly "qwen.qwen3-next-80b-a3b": {
|
|
1211
1228
|
id: string;
|
|
1212
1229
|
name: string;
|
|
@@ -3623,7 +3640,7 @@ export declare const MODELS: {
|
|
|
3623
3640
|
contextWindow: number;
|
|
3624
3641
|
maxTokens: number;
|
|
3625
3642
|
};
|
|
3626
|
-
readonly "gemma-4-26b": {
|
|
3643
|
+
readonly "gemma-4-26b-it": {
|
|
3627
3644
|
id: string;
|
|
3628
3645
|
name: string;
|
|
3629
3646
|
api: "google-generative-ai";
|
|
@@ -3640,7 +3657,7 @@ export declare const MODELS: {
|
|
|
3640
3657
|
contextWindow: number;
|
|
3641
3658
|
maxTokens: number;
|
|
3642
3659
|
};
|
|
3643
|
-
readonly "gemma-4-31b": {
|
|
3660
|
+
readonly "gemma-4-31b-it": {
|
|
3644
3661
|
id: string;
|
|
3645
3662
|
name: string;
|
|
3646
3663
|
api: "google-generative-ai";
|
|
@@ -4809,6 +4826,26 @@ export declare const MODELS: {
|
|
|
4809
4826
|
contextWindow: number;
|
|
4810
4827
|
maxTokens: number;
|
|
4811
4828
|
};
|
|
4829
|
+
readonly "zai-org/GLM-5.1": {
|
|
4830
|
+
id: string;
|
|
4831
|
+
name: string;
|
|
4832
|
+
api: "openai-completions";
|
|
4833
|
+
provider: string;
|
|
4834
|
+
baseUrl: string;
|
|
4835
|
+
compat: {
|
|
4836
|
+
supportsDeveloperRole: false;
|
|
4837
|
+
};
|
|
4838
|
+
reasoning: true;
|
|
4839
|
+
input: "text"[];
|
|
4840
|
+
cost: {
|
|
4841
|
+
input: number;
|
|
4842
|
+
output: number;
|
|
4843
|
+
cacheRead: number;
|
|
4844
|
+
cacheWrite: number;
|
|
4845
|
+
};
|
|
4846
|
+
contextWindow: number;
|
|
4847
|
+
maxTokens: number;
|
|
4848
|
+
};
|
|
4812
4849
|
};
|
|
4813
4850
|
readonly "kimi-coding": {
|
|
4814
4851
|
readonly k2p5: {
|
|
@@ -6421,6 +6458,23 @@ export declare const MODELS: {
|
|
|
6421
6458
|
contextWindow: number;
|
|
6422
6459
|
maxTokens: number;
|
|
6423
6460
|
};
|
|
6461
|
+
readonly "glm-5.1": {
|
|
6462
|
+
id: string;
|
|
6463
|
+
name: string;
|
|
6464
|
+
api: "openai-completions";
|
|
6465
|
+
provider: string;
|
|
6466
|
+
baseUrl: string;
|
|
6467
|
+
reasoning: true;
|
|
6468
|
+
input: "text"[];
|
|
6469
|
+
cost: {
|
|
6470
|
+
input: number;
|
|
6471
|
+
output: number;
|
|
6472
|
+
cacheRead: number;
|
|
6473
|
+
cacheWrite: number;
|
|
6474
|
+
};
|
|
6475
|
+
contextWindow: number;
|
|
6476
|
+
maxTokens: number;
|
|
6477
|
+
};
|
|
6424
6478
|
readonly "gpt-5": {
|
|
6425
6479
|
id: string;
|
|
6426
6480
|
name: string;
|
|
@@ -6727,7 +6781,9 @@ export declare const MODELS: {
|
|
|
6727
6781
|
contextWindow: number;
|
|
6728
6782
|
maxTokens: number;
|
|
6729
6783
|
};
|
|
6730
|
-
|
|
6784
|
+
};
|
|
6785
|
+
readonly "opencode-go": {
|
|
6786
|
+
readonly "glm-5": {
|
|
6731
6787
|
id: string;
|
|
6732
6788
|
name: string;
|
|
6733
6789
|
api: "openai-completions";
|
|
@@ -6744,9 +6800,7 @@ export declare const MODELS: {
|
|
|
6744
6800
|
contextWindow: number;
|
|
6745
6801
|
maxTokens: number;
|
|
6746
6802
|
};
|
|
6747
|
-
|
|
6748
|
-
readonly "opencode-go": {
|
|
6749
|
-
readonly "glm-5": {
|
|
6803
|
+
readonly "glm-5.1": {
|
|
6750
6804
|
id: string;
|
|
6751
6805
|
name: string;
|
|
6752
6806
|
api: "openai-completions";
|
|
@@ -6817,7 +6871,7 @@ export declare const MODELS: {
|
|
|
6817
6871
|
readonly "minimax-m2.5": {
|
|
6818
6872
|
id: string;
|
|
6819
6873
|
name: string;
|
|
6820
|
-
api: "
|
|
6874
|
+
api: "anthropic-messages";
|
|
6821
6875
|
provider: string;
|
|
6822
6876
|
baseUrl: string;
|
|
6823
6877
|
reasoning: true;
|
|
@@ -7139,6 +7193,23 @@ export declare const MODELS: {
|
|
|
7139
7193
|
contextWindow: number;
|
|
7140
7194
|
maxTokens: number;
|
|
7141
7195
|
};
|
|
7196
|
+
readonly "anthropic/claude-opus-4.6-fast": {
|
|
7197
|
+
id: string;
|
|
7198
|
+
name: string;
|
|
7199
|
+
api: "openai-completions";
|
|
7200
|
+
provider: string;
|
|
7201
|
+
baseUrl: string;
|
|
7202
|
+
reasoning: true;
|
|
7203
|
+
input: ("image" | "text")[];
|
|
7204
|
+
cost: {
|
|
7205
|
+
input: number;
|
|
7206
|
+
output: number;
|
|
7207
|
+
cacheRead: number;
|
|
7208
|
+
cacheWrite: number;
|
|
7209
|
+
};
|
|
7210
|
+
contextWindow: number;
|
|
7211
|
+
maxTokens: number;
|
|
7212
|
+
};
|
|
7142
7213
|
readonly "anthropic/claude-sonnet-4": {
|
|
7143
7214
|
id: string;
|
|
7144
7215
|
name: string;
|
|
@@ -7802,6 +7873,23 @@ export declare const MODELS: {
|
|
|
7802
7873
|
contextWindow: number;
|
|
7803
7874
|
maxTokens: number;
|
|
7804
7875
|
};
|
|
7876
|
+
readonly "google/gemma-4-26b-a4b-it:free": {
|
|
7877
|
+
id: string;
|
|
7878
|
+
name: string;
|
|
7879
|
+
api: "openai-completions";
|
|
7880
|
+
provider: string;
|
|
7881
|
+
baseUrl: string;
|
|
7882
|
+
reasoning: true;
|
|
7883
|
+
input: ("image" | "text")[];
|
|
7884
|
+
cost: {
|
|
7885
|
+
input: number;
|
|
7886
|
+
output: number;
|
|
7887
|
+
cacheRead: number;
|
|
7888
|
+
cacheWrite: number;
|
|
7889
|
+
};
|
|
7890
|
+
contextWindow: number;
|
|
7891
|
+
maxTokens: number;
|
|
7892
|
+
};
|
|
7805
7893
|
readonly "google/gemma-4-31b-it": {
|
|
7806
7894
|
id: string;
|
|
7807
7895
|
name: string;
|
|
@@ -7819,6 +7907,23 @@ export declare const MODELS: {
|
|
|
7819
7907
|
contextWindow: number;
|
|
7820
7908
|
maxTokens: number;
|
|
7821
7909
|
};
|
|
7910
|
+
readonly "google/gemma-4-31b-it:free": {
|
|
7911
|
+
id: string;
|
|
7912
|
+
name: string;
|
|
7913
|
+
api: "openai-completions";
|
|
7914
|
+
provider: string;
|
|
7915
|
+
baseUrl: string;
|
|
7916
|
+
reasoning: true;
|
|
7917
|
+
input: ("image" | "text")[];
|
|
7918
|
+
cost: {
|
|
7919
|
+
input: number;
|
|
7920
|
+
output: number;
|
|
7921
|
+
cacheRead: number;
|
|
7922
|
+
cacheWrite: number;
|
|
7923
|
+
};
|
|
7924
|
+
contextWindow: number;
|
|
7925
|
+
maxTokens: number;
|
|
7926
|
+
};
|
|
7822
7927
|
readonly "inception/mercury": {
|
|
7823
7928
|
id: string;
|
|
7824
7929
|
name: string;
|
|
@@ -10471,7 +10576,7 @@ export declare const MODELS: {
|
|
|
10471
10576
|
contextWindow: number;
|
|
10472
10577
|
maxTokens: number;
|
|
10473
10578
|
};
|
|
10474
|
-
readonly "qwen/qwen3.6-plus
|
|
10579
|
+
readonly "qwen/qwen3.6-plus": {
|
|
10475
10580
|
id: string;
|
|
10476
10581
|
name: string;
|
|
10477
10582
|
api: "openai-completions";
|
|
@@ -11066,6 +11171,23 @@ export declare const MODELS: {
|
|
|
11066
11171
|
contextWindow: number;
|
|
11067
11172
|
maxTokens: number;
|
|
11068
11173
|
};
|
|
11174
|
+
readonly "z-ai/glm-5.1": {
|
|
11175
|
+
id: string;
|
|
11176
|
+
name: string;
|
|
11177
|
+
api: "openai-completions";
|
|
11178
|
+
provider: string;
|
|
11179
|
+
baseUrl: string;
|
|
11180
|
+
reasoning: true;
|
|
11181
|
+
input: "text"[];
|
|
11182
|
+
cost: {
|
|
11183
|
+
input: number;
|
|
11184
|
+
output: number;
|
|
11185
|
+
cacheRead: number;
|
|
11186
|
+
cacheWrite: number;
|
|
11187
|
+
};
|
|
11188
|
+
contextWindow: number;
|
|
11189
|
+
maxTokens: number;
|
|
11190
|
+
};
|
|
11069
11191
|
readonly "z-ai/glm-5v-turbo": {
|
|
11070
11192
|
id: string;
|
|
11071
11193
|
name: string;
|
|
@@ -12972,23 +13094,6 @@ export declare const MODELS: {
|
|
|
12972
13094
|
contextWindow: number;
|
|
12973
13095
|
maxTokens: number;
|
|
12974
13096
|
};
|
|
12975
|
-
readonly "openai/gpt-oss-120b": {
|
|
12976
|
-
id: string;
|
|
12977
|
-
name: string;
|
|
12978
|
-
api: "anthropic-messages";
|
|
12979
|
-
provider: string;
|
|
12980
|
-
baseUrl: string;
|
|
12981
|
-
reasoning: true;
|
|
12982
|
-
input: "text"[];
|
|
12983
|
-
cost: {
|
|
12984
|
-
input: number;
|
|
12985
|
-
output: number;
|
|
12986
|
-
cacheRead: number;
|
|
12987
|
-
cacheWrite: number;
|
|
12988
|
-
};
|
|
12989
|
-
contextWindow: number;
|
|
12990
|
-
maxTokens: number;
|
|
12991
|
-
};
|
|
12992
13097
|
readonly "openai/gpt-oss-20b": {
|
|
12993
13098
|
id: string;
|
|
12994
13099
|
name: string;
|
|
@@ -13176,23 +13281,6 @@ export declare const MODELS: {
|
|
|
13176
13281
|
contextWindow: number;
|
|
13177
13282
|
maxTokens: number;
|
|
13178
13283
|
};
|
|
13179
|
-
readonly "xai/grok-2-vision": {
|
|
13180
|
-
id: string;
|
|
13181
|
-
name: string;
|
|
13182
|
-
api: "anthropic-messages";
|
|
13183
|
-
provider: string;
|
|
13184
|
-
baseUrl: string;
|
|
13185
|
-
reasoning: false;
|
|
13186
|
-
input: ("image" | "text")[];
|
|
13187
|
-
cost: {
|
|
13188
|
-
input: number;
|
|
13189
|
-
output: number;
|
|
13190
|
-
cacheRead: number;
|
|
13191
|
-
cacheWrite: number;
|
|
13192
|
-
};
|
|
13193
|
-
contextWindow: number;
|
|
13194
|
-
maxTokens: number;
|
|
13195
|
-
};
|
|
13196
13284
|
readonly "xai/grok-3": {
|
|
13197
13285
|
id: string;
|
|
13198
13286
|
name: string;
|
|
@@ -13686,6 +13774,23 @@ export declare const MODELS: {
|
|
|
13686
13774
|
contextWindow: number;
|
|
13687
13775
|
maxTokens: number;
|
|
13688
13776
|
};
|
|
13777
|
+
readonly "zai/glm-5.1": {
|
|
13778
|
+
id: string;
|
|
13779
|
+
name: string;
|
|
13780
|
+
api: "anthropic-messages";
|
|
13781
|
+
provider: string;
|
|
13782
|
+
baseUrl: string;
|
|
13783
|
+
reasoning: true;
|
|
13784
|
+
input: "text"[];
|
|
13785
|
+
cost: {
|
|
13786
|
+
input: number;
|
|
13787
|
+
output: number;
|
|
13788
|
+
cacheRead: number;
|
|
13789
|
+
cacheWrite: number;
|
|
13790
|
+
};
|
|
13791
|
+
contextWindow: number;
|
|
13792
|
+
maxTokens: number;
|
|
13793
|
+
};
|
|
13689
13794
|
readonly "zai/glm-5v-turbo": {
|
|
13690
13795
|
id: string;
|
|
13691
13796
|
name: string;
|