@astralform/js 7.0.0 → 7.1.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.
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -625,7 +625,16 @@ var AstralformClient = class {
|
|
|
625
625
|
*/
|
|
626
626
|
async getModels() {
|
|
627
627
|
const raw = await this.get("/v1/models");
|
|
628
|
-
return raw.map((m) =>
|
|
628
|
+
return raw.map((m) => {
|
|
629
|
+
const option = camelizeKeys(m);
|
|
630
|
+
return {
|
|
631
|
+
...option,
|
|
632
|
+
iconUrl: option.iconUrl ?? null,
|
|
633
|
+
lastUsedAt: option.lastUsedAt ?? null,
|
|
634
|
+
useCount: option.useCount ?? null,
|
|
635
|
+
contextWindow: option.contextWindow ?? null
|
|
636
|
+
};
|
|
637
|
+
});
|
|
629
638
|
}
|
|
630
639
|
async getSkills() {
|
|
631
640
|
const raw = await this.get("/v1/skills");
|