@2kw/ai 8.2.0-dev.8 → 8.2.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.
|
@@ -33,7 +33,7 @@ export function makeProvidersCommand() {
|
|
|
33
33
|
});
|
|
34
34
|
cmd
|
|
35
35
|
.command("create")
|
|
36
|
-
.description("Create a new provider")
|
|
36
|
+
.description("Create a new provider (admin)")
|
|
37
37
|
.requiredOption("-n, --name <name>", "Provider name")
|
|
38
38
|
.requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral, ollama)")
|
|
39
39
|
.option("--provider-api-key <key>", "API key for the AI provider (not needed for ollama)")
|
|
@@ -50,7 +50,7 @@ export function makeProvidersCommand() {
|
|
|
50
50
|
});
|
|
51
51
|
cmd
|
|
52
52
|
.command("update")
|
|
53
|
-
.description("Update a provider")
|
|
53
|
+
.description("Update a provider (admin)")
|
|
54
54
|
.argument("<id>", "Provider ID")
|
|
55
55
|
.option("-n, --name <name>", "New name")
|
|
56
56
|
.option("--type <type>", "New type")
|
|
@@ -74,7 +74,7 @@ export function makeProvidersCommand() {
|
|
|
74
74
|
});
|
|
75
75
|
cmd
|
|
76
76
|
.command("delete")
|
|
77
|
-
.description("Delete a provider")
|
|
77
|
+
.description("Delete a provider (admin)")
|
|
78
78
|
.argument("<id>", "Provider ID")
|
|
79
79
|
.action(async (id, _opts, command) => {
|
|
80
80
|
await runAction(command, async () => {
|
|
@@ -97,7 +97,7 @@ export function makeProvidersCommand() {
|
|
|
97
97
|
});
|
|
98
98
|
cmd
|
|
99
99
|
.command("test")
|
|
100
|
-
.description("Test connection to an AI provider using given or stored credentials")
|
|
100
|
+
.description("Test connection to an AI provider using given or stored credentials (admin)")
|
|
101
101
|
.requiredOption("--type <type>", "Provider type (openai, azure_openai, anthropic, xai, mistral, ollama)")
|
|
102
102
|
.option("--provider-api-key <key>", "API key to test (omit to use --provider-id's stored key)")
|
|
103
103
|
.option("--provider-id <id>", "Existing provider ID whose stored credentials should be used")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "8.2.0
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "CLI for 2kw.ai — schema-driven document extraction, an OpenAI-compatible EU LLM gateway, transcription, prompts, datasets, and experiments from your terminal or agentic workflows. Ships as 2kw, backbone, and bb.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|