@chimerai/cli 0.2.93 → 0.2.96
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-routes.d.ts","sourceRoot":"","sources":["../../src/templates/provider-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,wBAAgB,yBAAyB,IAAI,MAAM,CAmKlD;AAMD,wBAAgB,uBAAuB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"provider-routes.d.ts","sourceRoot":"","sources":["../../src/templates/provider-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,wBAAgB,yBAAyB,IAAI,MAAM,CAmKlD;AAMD,wBAAgB,uBAAuB,IAAI,MAAM,CA4PhD;AAMD,wBAAgB,yBAAyB,IAAI,MAAM,CA2MlD;AAOD,wBAAgB,yBAAyB,IAAI,MAAM,CAoMlD;AAMD,wBAAgB,8BAA8B,IAAI,MAAM,CAqGvD;AAMD,wBAAgB,+BAA+B,IAAI,MAAM,CA0FxD;AAMD,wBAAgB,kCAAkC,IAAI,MAAM,CA8G3D;AAMD,wBAAgB,+BAA+B,IAAI,MAAM,CAuCxD"}
|
|
@@ -289,6 +289,12 @@ export async function PUT(
|
|
|
289
289
|
|
|
290
290
|
// Handle API key update
|
|
291
291
|
const updateData: any = { ...body };
|
|
292
|
+
// Extract baseUrl from config if provided (frontend sends config.baseUrl, not top-level baseUrl)
|
|
293
|
+
if (body.config?.baseUrl !== undefined) {
|
|
294
|
+
updateData.baseUrl = body.config.baseUrl || getDefaultBaseUrl(body.type || '');
|
|
295
|
+
} else if ('baseUrl' in body) {
|
|
296
|
+
updateData.baseUrl = body.baseUrl;
|
|
297
|
+
}
|
|
292
298
|
if (body.config?.apiKey) {
|
|
293
299
|
updateData.apiKey = encrypt(body.config.apiKey);
|
|
294
300
|
updateData.config = _toDb({ ...body.config, apiKey: undefined });
|
package/package.json
CHANGED