@projectservan8n/cnapse 0.5.1 → 0.5.3
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/{ConfigUI-V5TM6KKS.js → ConfigUI-I2CJVODT.js} +5 -6
- package/dist/{Setup-Q32JPHGP.js → Setup-KGYXCA7Y.js} +8 -5
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/src/components/ConfigUI.tsx +5 -6
- package/src/components/ProviderSelector.tsx +6 -6
- package/src/components/Setup.tsx +5 -6
|
@@ -36,12 +36,11 @@ var PROVIDERS = [
|
|
|
36
36
|
description: "Many models, pay-per-use, great value",
|
|
37
37
|
needsApiKey: true,
|
|
38
38
|
models: [
|
|
39
|
-
{ id: "
|
|
40
|
-
{ id: "
|
|
41
|
-
{ id: "
|
|
42
|
-
{ id: "
|
|
43
|
-
{ id: "
|
|
44
|
-
{ id: "meta-llama/llama-3.1-70b-instruct", name: "Llama 3.1 70B", description: "Open source, powerful" }
|
|
39
|
+
{ id: "openai/gpt-5-nano", name: "GPT-5 Nano", description: "Best budget vision! $0.05/1M in", recommended: true },
|
|
40
|
+
{ id: "google/gemini-2.5-flash-lite", name: "Gemini 2.5 Flash Lite", description: "Fast reasoning, $0.10/1M in" },
|
|
41
|
+
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen 2.5 Coder 32B", description: "Best for coding, $0.07/1M" },
|
|
42
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B", description: "Powerful, $0.10/1M" },
|
|
43
|
+
{ id: "deepseek/deepseek-chat", name: "DeepSeek V3", description: "Cheap, $0.14/1M" }
|
|
45
44
|
]
|
|
46
45
|
},
|
|
47
46
|
{
|
|
@@ -18,17 +18,20 @@ var PROVIDERS = [
|
|
|
18
18
|
var DEFAULT_MODELS = {
|
|
19
19
|
ollama: ["qwen2.5:0.5b", "qwen2.5:7b", "llama3.2:3b", "codellama:7b"],
|
|
20
20
|
openrouter: [
|
|
21
|
+
"openai/gpt-5-nano",
|
|
22
|
+
// $0.05/1M - Best budget + vision!
|
|
23
|
+
"google/gemini-2.5-flash-lite",
|
|
24
|
+
// $0.10/1M - Fast reasoning
|
|
21
25
|
"qwen/qwen-2.5-coder-32b-instruct",
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
26
|
+
// $0.07/1M - Best for coding
|
|
27
|
+
"meta-llama/llama-3.3-70b-instruct"
|
|
28
|
+
// $0.10/1M
|
|
25
29
|
],
|
|
26
30
|
anthropic: [
|
|
27
31
|
"claude-3-5-sonnet-20241022",
|
|
28
|
-
"claude-3-opus-20240229",
|
|
29
32
|
"claude-3-haiku-20240307"
|
|
30
33
|
],
|
|
31
|
-
openai: ["gpt-4o
|
|
34
|
+
openai: ["gpt-4o-mini", "gpt-3.5-turbo"]
|
|
32
35
|
};
|
|
33
36
|
function Setup() {
|
|
34
37
|
const { exit } = useApp();
|
package/dist/index.js
CHANGED
|
@@ -275,14 +275,14 @@ var PROVIDERS = [
|
|
|
275
275
|
{
|
|
276
276
|
id: "openrouter",
|
|
277
277
|
name: "OpenRouter",
|
|
278
|
-
description: "Many models,
|
|
278
|
+
description: "Many models, budget-friendly",
|
|
279
279
|
needsApiKey: true,
|
|
280
280
|
models: [
|
|
281
|
-
{ id: "
|
|
282
|
-
{ id: "
|
|
283
|
-
{ id: "
|
|
284
|
-
{ id: "
|
|
285
|
-
{ id: "
|
|
281
|
+
{ id: "openai/gpt-5-nano", name: "GPT-5 Nano ($0.05/1M) + Vision", recommended: true },
|
|
282
|
+
{ id: "google/gemini-2.5-flash-lite", name: "Gemini 2.5 Flash Lite ($0.10/1M)" },
|
|
283
|
+
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen Coder 32B ($0.07/1M)" },
|
|
284
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B ($0.10/1M)" },
|
|
285
|
+
{ id: "deepseek/deepseek-chat", name: "DeepSeek V3 ($0.14/1M)" }
|
|
286
286
|
]
|
|
287
287
|
},
|
|
288
288
|
{
|
|
@@ -2165,7 +2165,7 @@ async function main() {
|
|
|
2165
2165
|
case "config": {
|
|
2166
2166
|
const subcommand = args[1];
|
|
2167
2167
|
if (!subcommand) {
|
|
2168
|
-
const { ConfigUI } = await import("./ConfigUI-
|
|
2168
|
+
const { ConfigUI } = await import("./ConfigUI-I2CJVODT.js");
|
|
2169
2169
|
render(/* @__PURE__ */ jsx8(ConfigUI, {}));
|
|
2170
2170
|
return;
|
|
2171
2171
|
}
|
|
@@ -2242,7 +2242,7 @@ Manual Setup:
|
|
|
2242
2242
|
process.exit(0);
|
|
2243
2243
|
}
|
|
2244
2244
|
case "init": {
|
|
2245
|
-
const { Setup } = await import("./Setup-
|
|
2245
|
+
const { Setup } = await import("./Setup-KGYXCA7Y.js");
|
|
2246
2246
|
render(/* @__PURE__ */ jsx8(Setup, {}));
|
|
2247
2247
|
return;
|
|
2248
2248
|
}
|
package/package.json
CHANGED
|
@@ -53,12 +53,11 @@ const PROVIDERS: ProviderConfig[] = [
|
|
|
53
53
|
description: 'Many models, pay-per-use, great value',
|
|
54
54
|
needsApiKey: true,
|
|
55
55
|
models: [
|
|
56
|
-
{ id: '
|
|
57
|
-
{ id: '
|
|
58
|
-
{ id: '
|
|
59
|
-
{ id: '
|
|
60
|
-
{ id: '
|
|
61
|
-
{ id: 'meta-llama/llama-3.1-70b-instruct', name: 'Llama 3.1 70B', description: 'Open source, powerful' },
|
|
56
|
+
{ id: 'openai/gpt-5-nano', name: 'GPT-5 Nano', description: 'Best budget vision! $0.05/1M in', recommended: true },
|
|
57
|
+
{ id: 'google/gemini-2.5-flash-lite', name: 'Gemini 2.5 Flash Lite', description: 'Fast reasoning, $0.10/1M in' },
|
|
58
|
+
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen 2.5 Coder 32B', description: 'Best for coding, $0.07/1M' },
|
|
59
|
+
{ id: 'meta-llama/llama-3.3-70b-instruct', name: 'Llama 3.3 70B', description: 'Powerful, $0.10/1M' },
|
|
60
|
+
{ id: 'deepseek/deepseek-chat', name: 'DeepSeek V3', description: 'Cheap, $0.14/1M' },
|
|
62
61
|
],
|
|
63
62
|
},
|
|
64
63
|
{
|
|
@@ -51,14 +51,14 @@ const PROVIDERS: ProviderConfig[] = [
|
|
|
51
51
|
{
|
|
52
52
|
id: 'openrouter',
|
|
53
53
|
name: 'OpenRouter',
|
|
54
|
-
description: 'Many models,
|
|
54
|
+
description: 'Many models, budget-friendly',
|
|
55
55
|
needsApiKey: true,
|
|
56
56
|
models: [
|
|
57
|
-
{ id: '
|
|
58
|
-
{ id: '
|
|
59
|
-
{ id: '
|
|
60
|
-
{ id: '
|
|
61
|
-
{ id: '
|
|
57
|
+
{ id: 'openai/gpt-5-nano', name: 'GPT-5 Nano ($0.05/1M) + Vision', recommended: true },
|
|
58
|
+
{ id: 'google/gemini-2.5-flash-lite', name: 'Gemini 2.5 Flash Lite ($0.10/1M)' },
|
|
59
|
+
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen Coder 32B ($0.07/1M)' },
|
|
60
|
+
{ id: 'meta-llama/llama-3.3-70b-instruct', name: 'Llama 3.3 70B ($0.10/1M)' },
|
|
61
|
+
{ id: 'deepseek/deepseek-chat', name: 'DeepSeek V3 ($0.14/1M)' },
|
|
62
62
|
],
|
|
63
63
|
},
|
|
64
64
|
{
|
package/src/components/Setup.tsx
CHANGED
|
@@ -15,17 +15,16 @@ const PROVIDERS = [
|
|
|
15
15
|
const DEFAULT_MODELS: Record<string, string[]> = {
|
|
16
16
|
ollama: ['qwen2.5:0.5b', 'qwen2.5:7b', 'llama3.2:3b', 'codellama:7b'],
|
|
17
17
|
openrouter: [
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
18
|
+
'openai/gpt-5-nano', // $0.05/1M - Best budget + vision!
|
|
19
|
+
'google/gemini-2.5-flash-lite', // $0.10/1M - Fast reasoning
|
|
20
|
+
'qwen/qwen-2.5-coder-32b-instruct', // $0.07/1M - Best for coding
|
|
21
|
+
'meta-llama/llama-3.3-70b-instruct', // $0.10/1M
|
|
22
22
|
],
|
|
23
23
|
anthropic: [
|
|
24
24
|
'claude-3-5-sonnet-20241022',
|
|
25
|
-
'claude-3-opus-20240229',
|
|
26
25
|
'claude-3-haiku-20240307',
|
|
27
26
|
],
|
|
28
|
-
openai: ['gpt-4o
|
|
27
|
+
openai: ['gpt-4o-mini', 'gpt-3.5-turbo'],
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
export function Setup() {
|