open-agents-ai 0.187.459 → 0.187.460
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 +9 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -542151,7 +542151,10 @@ async function readExpandedVariantState(backendUrl, modelName) {
|
|
|
542151
542151
|
const showData = await showRes.json();
|
|
542152
542152
|
const currentNumCtx = parseShowNumCtx2(showData);
|
|
542153
542153
|
const fromMatch = showData.modelfile?.match(/^FROM\s+(.+)$/m);
|
|
542154
|
-
|
|
542154
|
+
let baseModel = fromMatch?.[1]?.trim() ?? null;
|
|
542155
|
+
if (baseModel && (baseModel.startsWith("/") || /blobs\/sha256[-:]/.test(baseModel))) {
|
|
542156
|
+
baseModel = null;
|
|
542157
|
+
}
|
|
542155
542158
|
return { currentNumCtx, baseModel };
|
|
542156
542159
|
} catch {
|
|
542157
542160
|
return null;
|
|
@@ -542161,6 +542164,11 @@ function stripVariantTag(modelName) {
|
|
|
542161
542164
|
return modelName.replace(/:latest$/i, "");
|
|
542162
542165
|
}
|
|
542163
542166
|
function createExpandedVariantContent(baseModel, numCtx) {
|
|
542167
|
+
if (baseModel.startsWith("/") || /blobs\/sha256[-:]/.test(baseModel)) {
|
|
542168
|
+
throw new Error(
|
|
542169
|
+
`createExpandedVariantContent: refusing to use blob-path base "${baseModel}". Pass the user-facing model name (e.g. "qwen3.6:latest") instead.`
|
|
542170
|
+
);
|
|
542171
|
+
}
|
|
542164
542172
|
const numPredict = Math.min(16384, Math.max(2048, Math.floor(numCtx * 0.25)));
|
|
542165
542173
|
return [
|
|
542166
542174
|
`FROM ${baseModel}`,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.460",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.460",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED