openkbs 0.0.86 → 0.0.88
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/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -26,7 +26,9 @@ const SERVICES = {
|
|
|
26
26
|
"gemini-image": { accountId: "bc7ab06216fa2bf6db5d8e573d4d2415", model: "gemini-2.5-flash-image" },
|
|
27
27
|
// Full names
|
|
28
28
|
"gpt-image-1": { accountId: "e69424d275873af94993240df041ed78", model: "gpt-image-1" },
|
|
29
|
-
"gemini-2.5-flash-image": { accountId: "bc7ab06216fa2bf6db5d8e573d4d2415", model: "gemini-2.5-flash-image" }
|
|
29
|
+
"gemini-2.5-flash-image": { accountId: "bc7ab06216fa2bf6db5d8e573d4d2415", model: "gemini-2.5-flash-image" },
|
|
30
|
+
// Speech-to-text
|
|
31
|
+
"whisperLargeV3": { accountId: "a3d08121d9bd3b0723e3bdd2046d0368", model: "whisperLargeV3" }
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
/**
|
|
@@ -616,7 +618,7 @@ async function registerKBAndPush(options) {
|
|
|
616
618
|
|
|
617
619
|
await saveLocalKBData({ ...localKBData, kbId });
|
|
618
620
|
console.log(`KB ${kbId} created!`);
|
|
619
|
-
await pushAction(fs.existsSync(path.join(process.cwd(), 'cache')) ? 'cache' :
|
|
621
|
+
await pushAction(fs.existsSync(path.join(process.cwd(), 'cache')) ? 'cache' : 'origin');
|
|
620
622
|
} catch (error) {
|
|
621
623
|
console.error(`Error during create operation:`, error.message);
|
|
622
624
|
}
|
|
@@ -159,7 +159,7 @@ Available fields: `domain`, `domainParkingState`, `elasticPostgresHost`, `elasti
|
|
|
159
159
|
|
|
160
160
|
### Image Generation Service
|
|
161
161
|
Generate images directly from CLI using OpenKBS AI services:
|
|
162
|
-
|
|
162
|
+
````
|
|
163
163
|
```bash
|
|
164
164
|
# Generate with GPT
|
|
165
165
|
openkbs service -m gpt-image -d '{"action":"createImage","prompt":"a logo"}' -o logo.png
|
|
@@ -170,7 +170,7 @@ openkbs service -m gemini-image -d '{"action":"createImage","prompt":"hero image
|
|
|
170
170
|
# Edit existing image
|
|
171
171
|
openkbs service -m gpt-image -d '{"action":"createImage","prompt":"make it blue","imageUrls":["https://..."]}' -o edited.png
|
|
172
172
|
```
|
|
173
|
-
|
|
173
|
+
````
|
|
174
174
|
**Available models:**
|
|
175
175
|
- `gpt-image` - OpenAI GPT Image (gpt-image-1.5)
|
|
176
176
|
- `gemini-image` - Google Gemini Flash (gemini-2.5-flash-image)
|
package/version.json
CHANGED