@astralform/js 6.0.3 → 7.0.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 +2 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +68 -6
- package/dist/index.d.ts +68 -6
- package/dist/index.js +2 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -625,20 +625,7 @@ var AstralformClient = class {
|
|
|
625
625
|
*/
|
|
626
626
|
async getModels() {
|
|
627
627
|
const raw = await this.get("/v1/models");
|
|
628
|
-
return raw.map((m) => (
|
|
629
|
-
provider: m.provider,
|
|
630
|
-
providerDisplay: m.provider_display,
|
|
631
|
-
model: m.model,
|
|
632
|
-
thinking: m.thinking,
|
|
633
|
-
tools: m.tools,
|
|
634
|
-
vision: m.vision,
|
|
635
|
-
thinkingMode: m.thinking_mode,
|
|
636
|
-
// Coerce so the non-optional `supportsEffort: boolean` stays honest even
|
|
637
|
-
// against an older backend that omits `supports_effort` (→ false = safe:
|
|
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) => camelizeKeys(m));
|
|
642
629
|
}
|
|
643
630
|
async getSkills() {
|
|
644
631
|
const raw = await this.get("/v1/skills");
|
|
@@ -2827,6 +2814,7 @@ var StreamManager = class {
|
|
|
2827
2814
|
);
|
|
2828
2815
|
}
|
|
2829
2816
|
if (stopReplay()) return false;
|
|
2817
|
+
this.emit({ type: "restoreSettled", conversationId });
|
|
2830
2818
|
const versionCount = replayableJobs.filter(
|
|
2831
2819
|
(j) => j.status === "completed"
|
|
2832
2820
|
).length;
|