@narrative-os/cli 0.1.11 → 0.1.13

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.
@@ -129,10 +129,23 @@ async function configCommand(showOnly = false) {
129
129
  : provider === 'ark'
130
130
  ? 'doubao-embedding'
131
131
  : 'text-embedding-3-small';
132
+ // Set baseURL for embedding config based on provider
133
+ let embedBaseURL;
134
+ switch (provider) {
135
+ case 'alibaba':
136
+ embedBaseURL = 'https://dashscope.aliyuncs.com/compatible-mode/v1';
137
+ break;
138
+ case 'ark':
139
+ embedBaseURL = 'https://ark.cn-beijing.volces.com/api/v3';
140
+ break;
141
+ default:
142
+ embedBaseURL = undefined;
143
+ }
132
144
  embeddingConfig = {
133
145
  name: 'embedding',
134
146
  provider: provider,
135
147
  apiKey,
148
+ baseURL: embedBaseURL,
136
149
  model: embedModel,
137
150
  purpose: 'embedding',
138
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative-os/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "AI-native narrative engine for long-form story generation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@inquirer/prompts": "^8.3.0",
42
- "@narrative-os/engine": "0.1.7",
42
+ "@narrative-os/engine": "0.1.9",
43
43
  "commander": "^12.0.0"
44
44
  },
45
45
  "devDependencies": {