@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.d.cts
CHANGED
|
@@ -914,6 +914,19 @@ interface ModelOption {
|
|
|
914
914
|
* drive.
|
|
915
915
|
*/
|
|
916
916
|
thinkingControl?: ThinkingDescriptor;
|
|
917
|
+
/** the provider's brand mark (picker tiles); null until the backend rollout / for icon-less providers */
|
|
918
|
+
iconUrl?: string | null;
|
|
919
|
+
/** when the CALLER last ran this model (picker "Recent" ordering); null for a never-used model */
|
|
920
|
+
lastUsedAt?: string | null;
|
|
921
|
+
/** how many times the caller has run this model; null alongside lastUsedAt */
|
|
922
|
+
useCount?: number | null;
|
|
923
|
+
/**
|
|
924
|
+
* The model's context window in tokens, as the serving provider reports it
|
|
925
|
+
* — which is not always the model's headline number (a provider may serve
|
|
926
|
+
* a smaller window than the model supports). Null when the backend does not
|
|
927
|
+
* state one.
|
|
928
|
+
*/
|
|
929
|
+
contextWindow?: number | null;
|
|
917
930
|
}
|
|
918
931
|
interface ConversationAsset {
|
|
919
932
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -914,6 +914,19 @@ interface ModelOption {
|
|
|
914
914
|
* drive.
|
|
915
915
|
*/
|
|
916
916
|
thinkingControl?: ThinkingDescriptor;
|
|
917
|
+
/** the provider's brand mark (picker tiles); null until the backend rollout / for icon-less providers */
|
|
918
|
+
iconUrl?: string | null;
|
|
919
|
+
/** when the CALLER last ran this model (picker "Recent" ordering); null for a never-used model */
|
|
920
|
+
lastUsedAt?: string | null;
|
|
921
|
+
/** how many times the caller has run this model; null alongside lastUsedAt */
|
|
922
|
+
useCount?: number | null;
|
|
923
|
+
/**
|
|
924
|
+
* The model's context window in tokens, as the serving provider reports it
|
|
925
|
+
* — which is not always the model's headline number (a provider may serve
|
|
926
|
+
* a smaller window than the model supports). Null when the backend does not
|
|
927
|
+
* state one.
|
|
928
|
+
*/
|
|
929
|
+
contextWindow?: number | null;
|
|
917
930
|
}
|
|
918
931
|
interface ConversationAsset {
|
|
919
932
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -578,7 +578,16 @@ var AstralformClient = class {
|
|
|
578
578
|
*/
|
|
579
579
|
async getModels() {
|
|
580
580
|
const raw = await this.get("/v1/models");
|
|
581
|
-
return raw.map((m) =>
|
|
581
|
+
return raw.map((m) => {
|
|
582
|
+
const option = camelizeKeys(m);
|
|
583
|
+
return {
|
|
584
|
+
...option,
|
|
585
|
+
iconUrl: option.iconUrl ?? null,
|
|
586
|
+
lastUsedAt: option.lastUsedAt ?? null,
|
|
587
|
+
useCount: option.useCount ?? null,
|
|
588
|
+
contextWindow: option.contextWindow ?? null
|
|
589
|
+
};
|
|
590
|
+
});
|
|
582
591
|
}
|
|
583
592
|
async getSkills() {
|
|
584
593
|
const raw = await this.get("/v1/skills");
|