pi-neuralwatt-provider 1.3.3 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-neuralwatt-provider",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "description": "Neuralwatt provider extension for pi - Access Kimi, GLM, Qwen, GPT-OSS, Devstral, and MiniMax models through the Neuralwatt API",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/patch.json CHANGED
@@ -91,7 +91,7 @@
91
91
  "low": "low",
92
92
  "medium": "medium",
93
93
  "high": "high",
94
- "xhigh": null
94
+ "xhigh": "high"
95
95
  },
96
96
  "compat": {
97
97
  "maxTokensField": "max_tokens",
@@ -102,6 +102,13 @@
102
102
  }
103
103
  },
104
104
  "kimi-k2.7-code-flex": {
105
+ "thinkingLevelMap": {
106
+ "minimal": null,
107
+ "low": "low",
108
+ "medium": "medium",
109
+ "high": "high",
110
+ "xhigh": "high"
111
+ },
105
112
  "compat": {
106
113
  "requiresReasoningContentOnAssistantMessages": true,
107
114
  "chatTemplateKwargs": {
@@ -130,6 +130,30 @@ describe("GLM-5.2 family patch.json thinkingLevelMap", () => {
130
130
  });
131
131
  });
132
132
 
133
+ describe("Kimi K2.7 family patch.json thinkingLevelMap", () => {
134
+ const patches = patchesData as Record<string, any>;
135
+ const expectedMap = {
136
+ minimal: null,
137
+ low: "low",
138
+ medium: "medium",
139
+ high: "high",
140
+ xhigh: "high",
141
+ };
142
+
143
+ for (const id of ["kimi-k2.7-code", "kimi-k2.7-code-flex"]) {
144
+ it(`${id} supports xhigh (mapped to high), matching Makora's K2.7 config`, () => {
145
+ expect(patches[id]?.thinkingLevelMap).toEqual(expectedMap);
146
+ });
147
+ }
148
+
149
+ it("kimi-k2.7-code xhigh maps to high (not null/dropped)", () => {
150
+ // Before this patch xhigh was null (clamped away). Makora's K2.7 supports
151
+ // xhigh → high; this mirrors that so /reasoning xhigh is honored as a real
152
+ // level rather than silently downgraded to high via clamp.
153
+ expect(patches["kimi-k2.7-code"]?.thinkingLevelMap?.xhigh).toBe("high");
154
+ });
155
+ });
156
+
133
157
  describe("chatTemplateKwargs onPayload injection", () => {
134
158
  let originalFetch: typeof globalThis.fetch;
135
159