@moderniser/plugin 0.1.7 → 0.1.8
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 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -265,10 +265,7 @@ var ModerniserPlugin = async () => {
|
|
|
265
265
|
const modalities = { input: ["text", "image"], output: ["text"] };
|
|
266
266
|
const [product, prices] = await Promise.all([gatewayProduct(), companyPrices()]);
|
|
267
267
|
const efforts = (product.efforts ?? ["high"]).filter((effort) => effort !== "default");
|
|
268
|
-
const limit = {
|
|
269
|
-
...product.contextWindow ? { context: product.contextWindow } : {},
|
|
270
|
-
...product.maxOutputTokens ? { output: product.maxOutputTokens } : {}
|
|
271
|
-
};
|
|
268
|
+
const limit = product.contextWindow !== undefined || product.maxOutputTokens !== undefined ? { context: product.contextWindow ?? 0, output: product.maxOutputTokens ?? 0 } : undefined;
|
|
272
269
|
const models = {
|
|
273
270
|
emm: {
|
|
274
271
|
name: "Enterprise Modernisation Model",
|
|
@@ -276,7 +273,7 @@ var ModerniserPlugin = async () => {
|
|
|
276
273
|
reasoning: true,
|
|
277
274
|
modalities,
|
|
278
275
|
variants: Object.fromEntries(efforts.map((effort) => [effort, { reasoning_effort: effort }])),
|
|
279
|
-
...
|
|
276
|
+
...limit ? { limit } : {},
|
|
280
277
|
...prices ? { cost: prices } : {}
|
|
281
278
|
}
|
|
282
279
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moderniser/plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Moderniser plugin for opencode: points inference at the gateway, declares the Moderniser remote MCP server, and reports session telemetry",
|
|
6
6
|
"license": "MIT",
|