@lastbrain/ai-ui-core 1.0.8 → 1.0.9
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":"createClient.d.ts","sourceRoot":"","sources":["../../src/client/createClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AA6DlB,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;qBAsBnB,OAAO,CAAC,QAAQ,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../src/client/createClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AA6DlB,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY;qBAsBnB,OAAO,CAAC,QAAQ,EAAE,CAAC;wBAgDd,aAAa,KAAG,OAAO,CAAC,cAAc,CAAC;yBAmCtC,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;iBAmCjD,cAAc,KAAG,OAAO,CAAC,eAAe,CAAC;qBAkBvC,OAAO,CAAC,QAAQ,CAAC;EA4B9C"}
|
package/package.json
CHANGED
|
@@ -96,7 +96,7 @@ export function createClient(config: ClientConfig) {
|
|
|
96
96
|
const url = `${config.baseUrl}/provider`;
|
|
97
97
|
console.log("[createClient] getModels() calling URL:", url);
|
|
98
98
|
console.log("[createClient] headers:", createHeaders());
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
const response = await fetchWithRetry<any>(
|
|
101
101
|
url,
|
|
102
102
|
{
|
|
@@ -117,13 +117,19 @@ export function createClient(config: ClientConfig) {
|
|
|
117
117
|
allModels.push(...provider.models);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
console.log(
|
|
120
|
+
console.log(
|
|
121
|
+
"[createClient] getModels() extracted models:",
|
|
122
|
+
allModels.length
|
|
123
|
+
);
|
|
121
124
|
return allModels;
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
// Fallback: if response is already a flat array
|
|
125
128
|
if (Array.isArray(response)) {
|
|
126
|
-
console.log(
|
|
129
|
+
console.log(
|
|
130
|
+
"[createClient] getModels() direct array:",
|
|
131
|
+
response.length
|
|
132
|
+
);
|
|
127
133
|
return response;
|
|
128
134
|
}
|
|
129
135
|
|
|
@@ -226,7 +232,7 @@ export function createClient(config: ClientConfig) {
|
|
|
226
232
|
const url = `${config.baseUrl}/status`;
|
|
227
233
|
console.log("[createClient] getStatus() calling URL:", url);
|
|
228
234
|
console.log("[createClient] headers:", createHeaders());
|
|
229
|
-
|
|
235
|
+
|
|
230
236
|
return await fetchWithRetry<AiStatus>(
|
|
231
237
|
url,
|
|
232
238
|
{
|