@mcowger/pi-plexus 1.2.1 → 1.2.2

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/extension.js CHANGED
@@ -63,7 +63,10 @@ function resolveContextWindow(model) {
63
63
  }
64
64
  function resolveMaxTokens(model, contextWindow) {
65
65
  const v = model.top_provider?.max_completion_tokens ?? null;
66
- return v != null && v > 0 ? v : contextWindow;
66
+ if (v == null || v < 100) {
67
+ return 32768;
68
+ }
69
+ return v;
67
70
  }
68
71
  function resolvePricingTiers(model) {
69
72
  const pricing = model.pricing;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/pi-plexus",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Plexus AI proxy plugin for the pi coding agent",
5
5
  "type": "module",
6
6
  "files": [