@cortexkit/magic-context 0.49.54 → 0.49.55
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.js +2 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16132,18 +16132,8 @@ function parseModelListOutput(output) {
|
|
|
16132
16132
|
return [...models];
|
|
16133
16133
|
}
|
|
16134
16134
|
function getAvailableModels(piPath) {
|
|
16135
|
-
const
|
|
16136
|
-
|
|
16137
|
-
runPiCommand(piPath, ["models", "list"])
|
|
16138
|
-
];
|
|
16139
|
-
for (const output of outputs) {
|
|
16140
|
-
if (!output)
|
|
16141
|
-
continue;
|
|
16142
|
-
const models = parseModelListOutput(output);
|
|
16143
|
-
if (models.length > 0)
|
|
16144
|
-
return models;
|
|
16145
|
-
}
|
|
16146
|
-
return [];
|
|
16135
|
+
const output = runPiCommand(piPath, ["--list-models"]);
|
|
16136
|
+
return output ? parseModelListOutput(output) : [];
|
|
16147
16137
|
}
|
|
16148
16138
|
var PI_PACKAGE_SOURCE = "npm:@cortexkit/pi-magic-context", PROVIDER_TOKEN, MODEL_TOKEN, SIZE_TOKEN, CAPABILITY_TOKEN;
|
|
16149
16139
|
var init_pi_helpers = __esm(() => {
|