@hyperspaceng/neural-ai 0.65.3 → 0.67.2
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 +149 -92
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +246 -193
- package/dist/models.generated.js.map +1 -1
- package/dist/providers/google-gemini-cli.d.ts.map +1 -1
- package/dist/providers/google-gemini-cli.js +1 -1
- package/dist/providers/google-gemini-cli.js.map +1 -1
- package/dist/providers/google.d.ts.map +1 -1
- package/dist/providers/google.js +28 -3
- package/dist/providers/google.js.map +1 -1
- package/dist/providers/openai-codex-responses.d.ts +2 -0
- package/dist/providers/openai-codex-responses.d.ts.map +1 -1
- package/dist/providers/openai-codex-responses.js +33 -4
- package/dist/providers/openai-codex-responses.js.map +1 -1
- package/dist/types.d.ts +61 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/types.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 @hyperspaceng/neural-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 @hyperspaceng/neural-ai login # interactive provider selection\n npx @hyperspaceng/neural-ai login anthropic # login to specific provider\n npx @hyperspaceng/neural-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 @hyperspaceng/neural-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 @hyperspaceng/neural-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/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG7E,MAAM,SAAS,GAAG,WAAW,CAAC;AAC9B,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;AAEtC,SAAS,MAAM,CAAC,EAAsC,EAAE,QAAgB,EAAmB;IAC1F,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAAA,CAChE;AAED,SAAS,QAAQ,GAAyD;IACzE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;QAAE,OAAO,EAAE,CAAC;IACtC,IAAI,CAAC;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,EAAE,CAAC;IACX,CAAC;AAAA,CACD;AAED,SAAS,QAAQ,CAAC,IAA0D,EAAQ;IACnF,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IA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C,KAAK,CAAC,+DAA+D,CAAC,CAAC;YAC/E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,iBAAiB,QAAQ,KAAK,CAAC,CAAC;QAC5C,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtB,OAAO;IACR,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;IAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;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 @hyperspaceng/neural-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 @hyperspaceng/neural-ai login # interactive provider selection\n npx @hyperspaceng/neural-ai login anthropic # login to specific provider\n npx @hyperspaceng/neural-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 @hyperspaceng/neural-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 @hyperspaceng/neural-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;
|
|
@@ -4489,6 +4506,26 @@ export declare const MODELS: {
|
|
|
4489
4506
|
contextWindow: number;
|
|
4490
4507
|
maxTokens: number;
|
|
4491
4508
|
};
|
|
4509
|
+
readonly "MiniMaxAI/MiniMax-M2.7": {
|
|
4510
|
+
id: string;
|
|
4511
|
+
name: string;
|
|
4512
|
+
api: "openai-completions";
|
|
4513
|
+
provider: string;
|
|
4514
|
+
baseUrl: string;
|
|
4515
|
+
compat: {
|
|
4516
|
+
supportsDeveloperRole: false;
|
|
4517
|
+
};
|
|
4518
|
+
reasoning: true;
|
|
4519
|
+
input: "text"[];
|
|
4520
|
+
cost: {
|
|
4521
|
+
input: number;
|
|
4522
|
+
output: number;
|
|
4523
|
+
cacheRead: number;
|
|
4524
|
+
cacheWrite: number;
|
|
4525
|
+
};
|
|
4526
|
+
contextWindow: number;
|
|
4527
|
+
maxTokens: number;
|
|
4528
|
+
};
|
|
4492
4529
|
readonly "Qwen/Qwen3-235B-A22B-Thinking-2507": {
|
|
4493
4530
|
id: string;
|
|
4494
4531
|
name: string;
|
|
@@ -4809,6 +4846,26 @@ export declare const MODELS: {
|
|
|
4809
4846
|
contextWindow: number;
|
|
4810
4847
|
maxTokens: number;
|
|
4811
4848
|
};
|
|
4849
|
+
readonly "zai-org/GLM-5.1": {
|
|
4850
|
+
id: string;
|
|
4851
|
+
name: string;
|
|
4852
|
+
api: "openai-completions";
|
|
4853
|
+
provider: string;
|
|
4854
|
+
baseUrl: string;
|
|
4855
|
+
compat: {
|
|
4856
|
+
supportsDeveloperRole: false;
|
|
4857
|
+
};
|
|
4858
|
+
reasoning: true;
|
|
4859
|
+
input: "text"[];
|
|
4860
|
+
cost: {
|
|
4861
|
+
input: number;
|
|
4862
|
+
output: number;
|
|
4863
|
+
cacheRead: number;
|
|
4864
|
+
cacheWrite: number;
|
|
4865
|
+
};
|
|
4866
|
+
contextWindow: number;
|
|
4867
|
+
maxTokens: number;
|
|
4868
|
+
};
|
|
4812
4869
|
};
|
|
4813
4870
|
readonly "kimi-coding": {
|
|
4814
4871
|
readonly k2p5: {
|
|
@@ -6421,6 +6478,23 @@ export declare const MODELS: {
|
|
|
6421
6478
|
contextWindow: number;
|
|
6422
6479
|
maxTokens: number;
|
|
6423
6480
|
};
|
|
6481
|
+
readonly "glm-5.1": {
|
|
6482
|
+
id: string;
|
|
6483
|
+
name: string;
|
|
6484
|
+
api: "openai-completions";
|
|
6485
|
+
provider: string;
|
|
6486
|
+
baseUrl: string;
|
|
6487
|
+
reasoning: true;
|
|
6488
|
+
input: "text"[];
|
|
6489
|
+
cost: {
|
|
6490
|
+
input: number;
|
|
6491
|
+
output: number;
|
|
6492
|
+
cacheRead: number;
|
|
6493
|
+
cacheWrite: number;
|
|
6494
|
+
};
|
|
6495
|
+
contextWindow: number;
|
|
6496
|
+
maxTokens: number;
|
|
6497
|
+
};
|
|
6424
6498
|
readonly "gpt-5": {
|
|
6425
6499
|
id: string;
|
|
6426
6500
|
name: string;
|
|
@@ -6727,7 +6801,9 @@ export declare const MODELS: {
|
|
|
6727
6801
|
contextWindow: number;
|
|
6728
6802
|
maxTokens: number;
|
|
6729
6803
|
};
|
|
6730
|
-
|
|
6804
|
+
};
|
|
6805
|
+
readonly "opencode-go": {
|
|
6806
|
+
readonly "glm-5": {
|
|
6731
6807
|
id: string;
|
|
6732
6808
|
name: string;
|
|
6733
6809
|
api: "openai-completions";
|
|
@@ -6744,9 +6820,7 @@ export declare const MODELS: {
|
|
|
6744
6820
|
contextWindow: number;
|
|
6745
6821
|
maxTokens: number;
|
|
6746
6822
|
};
|
|
6747
|
-
|
|
6748
|
-
readonly "opencode-go": {
|
|
6749
|
-
readonly "glm-5": {
|
|
6823
|
+
readonly "glm-5.1": {
|
|
6750
6824
|
id: string;
|
|
6751
6825
|
name: string;
|
|
6752
6826
|
api: "openai-completions";
|
|
@@ -6817,7 +6891,7 @@ export declare const MODELS: {
|
|
|
6817
6891
|
readonly "minimax-m2.5": {
|
|
6818
6892
|
id: string;
|
|
6819
6893
|
name: string;
|
|
6820
|
-
api: "
|
|
6894
|
+
api: "anthropic-messages";
|
|
6821
6895
|
provider: string;
|
|
6822
6896
|
baseUrl: string;
|
|
6823
6897
|
reasoning: true;
|
|
@@ -7139,7 +7213,7 @@ export declare const MODELS: {
|
|
|
7139
7213
|
contextWindow: number;
|
|
7140
7214
|
maxTokens: number;
|
|
7141
7215
|
};
|
|
7142
|
-
readonly "anthropic/claude-
|
|
7216
|
+
readonly "anthropic/claude-opus-4.6-fast": {
|
|
7143
7217
|
id: string;
|
|
7144
7218
|
name: string;
|
|
7145
7219
|
api: "openai-completions";
|
|
@@ -7156,7 +7230,7 @@ export declare const MODELS: {
|
|
|
7156
7230
|
contextWindow: number;
|
|
7157
7231
|
maxTokens: number;
|
|
7158
7232
|
};
|
|
7159
|
-
readonly "anthropic/claude-sonnet-4
|
|
7233
|
+
readonly "anthropic/claude-sonnet-4": {
|
|
7160
7234
|
id: string;
|
|
7161
7235
|
name: string;
|
|
7162
7236
|
api: "openai-completions";
|
|
@@ -7173,7 +7247,7 @@ export declare const MODELS: {
|
|
|
7173
7247
|
contextWindow: number;
|
|
7174
7248
|
maxTokens: number;
|
|
7175
7249
|
};
|
|
7176
|
-
readonly "anthropic/claude-sonnet-4.
|
|
7250
|
+
readonly "anthropic/claude-sonnet-4.5": {
|
|
7177
7251
|
id: string;
|
|
7178
7252
|
name: string;
|
|
7179
7253
|
api: "openai-completions";
|
|
@@ -7190,14 +7264,14 @@ export declare const MODELS: {
|
|
|
7190
7264
|
contextWindow: number;
|
|
7191
7265
|
maxTokens: number;
|
|
7192
7266
|
};
|
|
7193
|
-
readonly "
|
|
7267
|
+
readonly "anthropic/claude-sonnet-4.6": {
|
|
7194
7268
|
id: string;
|
|
7195
7269
|
name: string;
|
|
7196
7270
|
api: "openai-completions";
|
|
7197
7271
|
provider: string;
|
|
7198
7272
|
baseUrl: string;
|
|
7199
|
-
reasoning:
|
|
7200
|
-
input: "text"[];
|
|
7273
|
+
reasoning: true;
|
|
7274
|
+
input: ("image" | "text")[];
|
|
7201
7275
|
cost: {
|
|
7202
7276
|
input: number;
|
|
7203
7277
|
output: number;
|
|
@@ -7207,13 +7281,13 @@ export declare const MODELS: {
|
|
|
7207
7281
|
contextWindow: number;
|
|
7208
7282
|
maxTokens: number;
|
|
7209
7283
|
};
|
|
7210
|
-
readonly "arcee-ai/trinity-large-
|
|
7284
|
+
readonly "arcee-ai/trinity-large-preview:free": {
|
|
7211
7285
|
id: string;
|
|
7212
7286
|
name: string;
|
|
7213
7287
|
api: "openai-completions";
|
|
7214
7288
|
provider: string;
|
|
7215
7289
|
baseUrl: string;
|
|
7216
|
-
reasoning:
|
|
7290
|
+
reasoning: false;
|
|
7217
7291
|
input: "text"[];
|
|
7218
7292
|
cost: {
|
|
7219
7293
|
input: number;
|
|
@@ -7224,7 +7298,7 @@ export declare const MODELS: {
|
|
|
7224
7298
|
contextWindow: number;
|
|
7225
7299
|
maxTokens: number;
|
|
7226
7300
|
};
|
|
7227
|
-
readonly "arcee-ai/trinity-
|
|
7301
|
+
readonly "arcee-ai/trinity-large-thinking": {
|
|
7228
7302
|
id: string;
|
|
7229
7303
|
name: string;
|
|
7230
7304
|
api: "openai-completions";
|
|
@@ -7241,7 +7315,7 @@ export declare const MODELS: {
|
|
|
7241
7315
|
contextWindow: number;
|
|
7242
7316
|
maxTokens: number;
|
|
7243
7317
|
};
|
|
7244
|
-
readonly "arcee-ai/trinity-mini
|
|
7318
|
+
readonly "arcee-ai/trinity-mini": {
|
|
7245
7319
|
id: string;
|
|
7246
7320
|
name: string;
|
|
7247
7321
|
api: "openai-completions";
|
|
@@ -7802,7 +7876,7 @@ export declare const MODELS: {
|
|
|
7802
7876
|
contextWindow: number;
|
|
7803
7877
|
maxTokens: number;
|
|
7804
7878
|
};
|
|
7805
|
-
readonly "google/gemma-4-
|
|
7879
|
+
readonly "google/gemma-4-26b-a4b-it:free": {
|
|
7806
7880
|
id: string;
|
|
7807
7881
|
name: string;
|
|
7808
7882
|
api: "openai-completions";
|
|
@@ -7819,14 +7893,14 @@ export declare const MODELS: {
|
|
|
7819
7893
|
contextWindow: number;
|
|
7820
7894
|
maxTokens: number;
|
|
7821
7895
|
};
|
|
7822
|
-
readonly "
|
|
7896
|
+
readonly "google/gemma-4-31b-it": {
|
|
7823
7897
|
id: string;
|
|
7824
7898
|
name: string;
|
|
7825
7899
|
api: "openai-completions";
|
|
7826
7900
|
provider: string;
|
|
7827
7901
|
baseUrl: string;
|
|
7828
|
-
reasoning:
|
|
7829
|
-
input: "text"[];
|
|
7902
|
+
reasoning: true;
|
|
7903
|
+
input: ("image" | "text")[];
|
|
7830
7904
|
cost: {
|
|
7831
7905
|
input: number;
|
|
7832
7906
|
output: number;
|
|
@@ -7836,14 +7910,14 @@ export declare const MODELS: {
|
|
|
7836
7910
|
contextWindow: number;
|
|
7837
7911
|
maxTokens: number;
|
|
7838
7912
|
};
|
|
7839
|
-
readonly "
|
|
7913
|
+
readonly "google/gemma-4-31b-it:free": {
|
|
7840
7914
|
id: string;
|
|
7841
7915
|
name: string;
|
|
7842
7916
|
api: "openai-completions";
|
|
7843
7917
|
provider: string;
|
|
7844
7918
|
baseUrl: string;
|
|
7845
7919
|
reasoning: true;
|
|
7846
|
-
input: "text"[];
|
|
7920
|
+
input: ("image" | "text")[];
|
|
7847
7921
|
cost: {
|
|
7848
7922
|
input: number;
|
|
7849
7923
|
output: number;
|
|
@@ -7853,13 +7927,13 @@ export declare const MODELS: {
|
|
|
7853
7927
|
contextWindow: number;
|
|
7854
7928
|
maxTokens: number;
|
|
7855
7929
|
};
|
|
7856
|
-
readonly "inception/mercury-
|
|
7930
|
+
readonly "inception/mercury-2": {
|
|
7857
7931
|
id: string;
|
|
7858
7932
|
name: string;
|
|
7859
7933
|
api: "openai-completions";
|
|
7860
7934
|
provider: string;
|
|
7861
7935
|
baseUrl: string;
|
|
7862
|
-
reasoning:
|
|
7936
|
+
reasoning: true;
|
|
7863
7937
|
input: "text"[];
|
|
7864
7938
|
cost: {
|
|
7865
7939
|
input: number;
|
|
@@ -7887,23 +7961,6 @@ export declare const MODELS: {
|
|
|
7887
7961
|
contextWindow: number;
|
|
7888
7962
|
maxTokens: number;
|
|
7889
7963
|
};
|
|
7890
|
-
readonly "meituan/longcat-flash-chat": {
|
|
7891
|
-
id: string;
|
|
7892
|
-
name: string;
|
|
7893
|
-
api: "openai-completions";
|
|
7894
|
-
provider: string;
|
|
7895
|
-
baseUrl: string;
|
|
7896
|
-
reasoning: false;
|
|
7897
|
-
input: "text"[];
|
|
7898
|
-
cost: {
|
|
7899
|
-
input: number;
|
|
7900
|
-
output: number;
|
|
7901
|
-
cacheRead: number;
|
|
7902
|
-
cacheWrite: number;
|
|
7903
|
-
};
|
|
7904
|
-
contextWindow: number;
|
|
7905
|
-
maxTokens: number;
|
|
7906
|
-
};
|
|
7907
7964
|
readonly "meta-llama/llama-3-8b-instruct": {
|
|
7908
7965
|
id: string;
|
|
7909
7966
|
name: string;
|
|
@@ -9723,6 +9780,23 @@ export declare const MODELS: {
|
|
|
9723
9780
|
contextWindow: number;
|
|
9724
9781
|
maxTokens: number;
|
|
9725
9782
|
};
|
|
9783
|
+
readonly "openrouter/elephant-alpha": {
|
|
9784
|
+
id: string;
|
|
9785
|
+
name: string;
|
|
9786
|
+
api: "openai-completions";
|
|
9787
|
+
provider: string;
|
|
9788
|
+
baseUrl: string;
|
|
9789
|
+
reasoning: false;
|
|
9790
|
+
input: "text"[];
|
|
9791
|
+
cost: {
|
|
9792
|
+
input: number;
|
|
9793
|
+
output: number;
|
|
9794
|
+
cacheRead: number;
|
|
9795
|
+
cacheWrite: number;
|
|
9796
|
+
};
|
|
9797
|
+
contextWindow: number;
|
|
9798
|
+
maxTokens: number;
|
|
9799
|
+
};
|
|
9726
9800
|
readonly "openrouter/free": {
|
|
9727
9801
|
id: string;
|
|
9728
9802
|
name: string;
|
|
@@ -10471,7 +10545,7 @@ export declare const MODELS: {
|
|
|
10471
10545
|
contextWindow: number;
|
|
10472
10546
|
maxTokens: number;
|
|
10473
10547
|
};
|
|
10474
|
-
readonly "qwen/qwen3.6-plus
|
|
10548
|
+
readonly "qwen/qwen3.6-plus": {
|
|
10475
10549
|
id: string;
|
|
10476
10550
|
name: string;
|
|
10477
10551
|
api: "openai-completions";
|
|
@@ -10590,23 +10664,6 @@ export declare const MODELS: {
|
|
|
10590
10664
|
contextWindow: number;
|
|
10591
10665
|
maxTokens: number;
|
|
10592
10666
|
};
|
|
10593
|
-
readonly "stepfun/step-3.5-flash:free": {
|
|
10594
|
-
id: string;
|
|
10595
|
-
name: string;
|
|
10596
|
-
api: "openai-completions";
|
|
10597
|
-
provider: string;
|
|
10598
|
-
baseUrl: string;
|
|
10599
|
-
reasoning: true;
|
|
10600
|
-
input: "text"[];
|
|
10601
|
-
cost: {
|
|
10602
|
-
input: number;
|
|
10603
|
-
output: number;
|
|
10604
|
-
cacheRead: number;
|
|
10605
|
-
cacheWrite: number;
|
|
10606
|
-
};
|
|
10607
|
-
contextWindow: number;
|
|
10608
|
-
maxTokens: number;
|
|
10609
|
-
};
|
|
10610
10667
|
readonly "thedrummer/rocinante-12b": {
|
|
10611
10668
|
id: string;
|
|
10612
10669
|
name: string;
|
|
@@ -11066,6 +11123,23 @@ export declare const MODELS: {
|
|
|
11066
11123
|
contextWindow: number;
|
|
11067
11124
|
maxTokens: number;
|
|
11068
11125
|
};
|
|
11126
|
+
readonly "z-ai/glm-5.1": {
|
|
11127
|
+
id: string;
|
|
11128
|
+
name: string;
|
|
11129
|
+
api: "openai-completions";
|
|
11130
|
+
provider: string;
|
|
11131
|
+
baseUrl: string;
|
|
11132
|
+
reasoning: true;
|
|
11133
|
+
input: "text"[];
|
|
11134
|
+
cost: {
|
|
11135
|
+
input: number;
|
|
11136
|
+
output: number;
|
|
11137
|
+
cacheRead: number;
|
|
11138
|
+
cacheWrite: number;
|
|
11139
|
+
};
|
|
11140
|
+
contextWindow: number;
|
|
11141
|
+
maxTokens: number;
|
|
11142
|
+
};
|
|
11069
11143
|
readonly "z-ai/glm-5v-turbo": {
|
|
11070
11144
|
id: string;
|
|
11071
11145
|
name: string;
|
|
@@ -12972,23 +13046,6 @@ export declare const MODELS: {
|
|
|
12972
13046
|
contextWindow: number;
|
|
12973
13047
|
maxTokens: number;
|
|
12974
13048
|
};
|
|
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
13049
|
readonly "openai/gpt-oss-20b": {
|
|
12993
13050
|
id: string;
|
|
12994
13051
|
name: string;
|
|
@@ -13176,23 +13233,6 @@ export declare const MODELS: {
|
|
|
13176
13233
|
contextWindow: number;
|
|
13177
13234
|
maxTokens: number;
|
|
13178
13235
|
};
|
|
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
13236
|
readonly "xai/grok-3": {
|
|
13197
13237
|
id: string;
|
|
13198
13238
|
name: string;
|
|
@@ -13686,6 +13726,23 @@ export declare const MODELS: {
|
|
|
13686
13726
|
contextWindow: number;
|
|
13687
13727
|
maxTokens: number;
|
|
13688
13728
|
};
|
|
13729
|
+
readonly "zai/glm-5.1": {
|
|
13730
|
+
id: string;
|
|
13731
|
+
name: string;
|
|
13732
|
+
api: "anthropic-messages";
|
|
13733
|
+
provider: string;
|
|
13734
|
+
baseUrl: string;
|
|
13735
|
+
reasoning: true;
|
|
13736
|
+
input: "text"[];
|
|
13737
|
+
cost: {
|
|
13738
|
+
input: number;
|
|
13739
|
+
output: number;
|
|
13740
|
+
cacheRead: number;
|
|
13741
|
+
cacheWrite: number;
|
|
13742
|
+
};
|
|
13743
|
+
contextWindow: number;
|
|
13744
|
+
maxTokens: number;
|
|
13745
|
+
};
|
|
13689
13746
|
readonly "zai/glm-5v-turbo": {
|
|
13690
13747
|
id: string;
|
|
13691
13748
|
name: string;
|