@projectservan8n/cnapse 0.5.1 → 0.5.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/{ConfigUI-V5TM6KKS.js → ConfigUI-4436NFLC.js} +6 -6
- package/dist/{Setup-Q32JPHGP.js → Setup-HAPL64ZK.js} +8 -5
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/src/components/ConfigUI.tsx +6 -6
- package/src/components/ProviderSelector.tsx +6 -6
- package/src/components/Setup.tsx +5 -6
|
@@ -36,12 +36,12 @@ var PROVIDERS = [
|
|
|
36
36
|
description: "Many models, pay-per-use, great value",
|
|
37
37
|
needsApiKey: true,
|
|
38
38
|
models: [
|
|
39
|
-
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen 2.5 Coder 32B", description: "Best
|
|
40
|
-
{ id: "
|
|
41
|
-
{ id: "
|
|
42
|
-
{ id: "openai/gpt-4o-mini", name: "GPT-4o Mini", description: "
|
|
43
|
-
{ id: "google/gemini-
|
|
44
|
-
{ id: "
|
|
39
|
+
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen 2.5 Coder 32B", description: "Best value! $0.07/1M tokens", recommended: true },
|
|
40
|
+
{ id: "qwen/qwen-2-vl-7b-instruct", name: "Qwen 2 VL 7B", description: "FREE! Vision model" },
|
|
41
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B", description: "Powerful, $0.10/1M tokens" },
|
|
42
|
+
{ id: "openai/gpt-4o-mini", name: "GPT-4o Mini", description: "Fast, $0.15/1M tokens" },
|
|
43
|
+
{ id: "google/gemini-2.0-flash-001", name: "Gemini 2.0 Flash", description: "Free tier available" },
|
|
44
|
+
{ id: "deepseek/deepseek-chat", name: "DeepSeek V3", description: "Cheap, $0.14/1M tokens" }
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -19,16 +19,19 @@ var DEFAULT_MODELS = {
|
|
|
19
19
|
ollama: ["qwen2.5:0.5b", "qwen2.5:7b", "llama3.2:3b", "codellama:7b"],
|
|
20
20
|
openrouter: [
|
|
21
21
|
"qwen/qwen-2.5-coder-32b-instruct",
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
22
|
+
// $0.07/1M - Best value!
|
|
23
|
+
"qwen/qwen-2-vl-7b-instruct",
|
|
24
|
+
// FREE - Vision model
|
|
25
|
+
"meta-llama/llama-3.3-70b-instruct",
|
|
26
|
+
// $0.10/1M
|
|
27
|
+
"google/gemini-2.0-flash-001"
|
|
28
|
+
// Free tier
|
|
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: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen Coder 32B", recommended: true },
|
|
282
|
-
{ id: "
|
|
283
|
-
{ id: "
|
|
284
|
-
{ id: "
|
|
285
|
-
{ id: "
|
|
281
|
+
{ id: "qwen/qwen-2.5-coder-32b-instruct", name: "Qwen Coder 32B ($0.07/1M)", recommended: true },
|
|
282
|
+
{ id: "qwen/qwen-2-vl-7b-instruct", name: "Qwen 2 VL (FREE vision)" },
|
|
283
|
+
{ id: "meta-llama/llama-3.3-70b-instruct", name: "Llama 3.3 70B ($0.10/1M)" },
|
|
284
|
+
{ id: "google/gemini-2.0-flash-001", name: "Gemini 2.0 Flash (free tier)" },
|
|
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-4436NFLC.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-HAPL64ZK.js");
|
|
2246
2246
|
render(/* @__PURE__ */ jsx8(Setup, {}));
|
|
2247
2247
|
return;
|
|
2248
2248
|
}
|
package/package.json
CHANGED
|
@@ -53,12 +53,12 @@ const PROVIDERS: ProviderConfig[] = [
|
|
|
53
53
|
description: 'Many models, pay-per-use, great value',
|
|
54
54
|
needsApiKey: true,
|
|
55
55
|
models: [
|
|
56
|
-
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen 2.5 Coder 32B', description: 'Best
|
|
57
|
-
{ id: '
|
|
58
|
-
{ id: '
|
|
59
|
-
{ id: 'openai/gpt-4o-mini', name: 'GPT-4o Mini', description: '
|
|
60
|
-
{ id: 'google/gemini-
|
|
61
|
-
{ id: '
|
|
56
|
+
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen 2.5 Coder 32B', description: 'Best value! $0.07/1M tokens', recommended: true },
|
|
57
|
+
{ id: 'qwen/qwen-2-vl-7b-instruct', name: 'Qwen 2 VL 7B', description: 'FREE! Vision model' },
|
|
58
|
+
{ id: 'meta-llama/llama-3.3-70b-instruct', name: 'Llama 3.3 70B', description: 'Powerful, $0.10/1M tokens' },
|
|
59
|
+
{ id: 'openai/gpt-4o-mini', name: 'GPT-4o Mini', description: 'Fast, $0.15/1M tokens' },
|
|
60
|
+
{ id: 'google/gemini-2.0-flash-001', name: 'Gemini 2.0 Flash', description: 'Free tier available' },
|
|
61
|
+
{ id: 'deepseek/deepseek-chat', name: 'DeepSeek V3', description: 'Cheap, $0.14/1M tokens' },
|
|
62
62
|
],
|
|
63
63
|
},
|
|
64
64
|
{
|
|
@@ -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: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen Coder 32B', recommended: true },
|
|
58
|
-
{ id: '
|
|
59
|
-
{ id: '
|
|
60
|
-
{ id: '
|
|
61
|
-
{ id: '
|
|
57
|
+
{ id: 'qwen/qwen-2.5-coder-32b-instruct', name: 'Qwen Coder 32B ($0.07/1M)', recommended: true },
|
|
58
|
+
{ id: 'qwen/qwen-2-vl-7b-instruct', name: 'Qwen 2 VL (FREE vision)' },
|
|
59
|
+
{ id: 'meta-llama/llama-3.3-70b-instruct', name: 'Llama 3.3 70B ($0.10/1M)' },
|
|
60
|
+
{ id: 'google/gemini-2.0-flash-001', name: 'Gemini 2.0 Flash (free tier)' },
|
|
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
|
-
'qwen/qwen-2.5-coder-32b-instruct',
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'google/gemini-
|
|
18
|
+
'qwen/qwen-2.5-coder-32b-instruct', // $0.07/1M - Best value!
|
|
19
|
+
'qwen/qwen-2-vl-7b-instruct', // FREE - Vision model
|
|
20
|
+
'meta-llama/llama-3.3-70b-instruct', // $0.10/1M
|
|
21
|
+
'google/gemini-2.0-flash-001', // Free tier
|
|
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() {
|