@astralform/js 6.0.4 → 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 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -6
- package/dist/index.d.ts +65 -6
- package/dist/index.js +10 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -625,20 +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) =>
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
// the effort control is hidden). Unlike the always-present siblings above,
|
|
639
|
-
// this field can be absent, so it's the one that needs coercion.
|
|
640
|
-
supportsEffort: Boolean(m.supports_effort)
|
|
641
|
-
}));
|
|
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
|
+
});
|
|
642
638
|
}
|
|
643
639
|
async getSkills() {
|
|
644
640
|
const raw = await this.get("/v1/skills");
|