pi-makora-provider 1.2.0 → 1.3.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/index.ts +0 -21
- package/package.json +1 -1
- package/patch.json +0 -62
package/index.ts
CHANGED
|
@@ -25,30 +25,18 @@
|
|
|
25
25
|
* chat_template_kwargs: { thinking: true }.
|
|
26
26
|
* include_reasoning alone returns reasoning: null on this vLLM build.
|
|
27
27
|
* Returns reasoning field.
|
|
28
|
-
* - GLM 5.1 FP8: reasoning via chat_template_kwargs.enable_thinking.
|
|
29
|
-
* NOTE: vLLM may leak chain-of-thought into content instead of the
|
|
30
|
-
* reasoning field on some builds. See
|
|
31
|
-
* https://github.com/vllm-project/vllm/issues/31319
|
|
32
|
-
* Also: vLLM's streaming parser omits delta.tool_calls when the model
|
|
33
|
-
* calls tools, finishing with finish_reason: "tool_calls" but an empty
|
|
34
|
-
* delta. Setting zaiToolStream: true sends tool_stream: true in the
|
|
35
|
-
* request, which forces vLLM to use the explicit tool streaming path
|
|
36
|
-
* that correctly emits tool call chunks.
|
|
37
28
|
* - GLM 5.2 FP8 / NVFP4: reasoning via chat_template_kwargs.enable_thinking.
|
|
38
29
|
* Effort uses vLLM's reasoning_effort field (only `high` and `max` are
|
|
39
30
|
* distinct levels per the vLLM GLM-5.2 recipe; lower pi levels resolve to
|
|
40
31
|
* the default). Thinking levels aligned with the neuralwatt provider's
|
|
41
32
|
* GLM 5.2 configuration and mapped through pi's qwen-chat-template
|
|
42
33
|
* thinkingFormat. Returns `reasoning` field.
|
|
43
|
-
* - GPT-OSS 120B: reasoning always on; returns `reasoning` field.
|
|
44
34
|
* - Kimi K2.7 Code: reasoning always on (thinking-only model);
|
|
45
35
|
* chatTemplateKwargs.preserve_thinking forces multi-turn reasoning
|
|
46
36
|
* continuity. Returns `reasoning` field. Can be toggled via enable_thinking.
|
|
47
37
|
* - Qwen 3.6 models: reasoning via chat_template_kwargs.enable_thinking;
|
|
48
38
|
* chatTemplateKwargs.preserve_thinking for multi-turn continuity.
|
|
49
39
|
* Returns `reasoning` field.
|
|
50
|
-
* - MiniMax M3 MXFP8: reasoning via chat_template_kwargs.enable_thinking;
|
|
51
|
-
* returns reasoning_content field.
|
|
52
40
|
* - Llama 3.3 70B: not a reasoning model.
|
|
53
41
|
*
|
|
54
42
|
* Developer role is NOT supported by any of the chat templates on Makora's
|
|
@@ -226,10 +214,8 @@ const BASE_URL = "https://inference.makora.com/v1";
|
|
|
226
214
|
|
|
227
215
|
const DS_PRO_ID = "deepseek-ai/DeepSeek-V4-Pro";
|
|
228
216
|
const DS_FLASH_ID = "deepseek-ai/DeepSeek-V4-Flash";
|
|
229
|
-
const MINIMAX_M3_ID = "MiniMaxAI/MiniMax-M3-MXFP8";
|
|
230
217
|
|
|
231
218
|
const DS_VLLM_MODELS = new Set([DS_PRO_ID, DS_FLASH_ID]);
|
|
232
|
-
const ENABLE_THINKING_VLLM_MODELS = new Set([MINIMAX_M3_ID]);
|
|
233
219
|
|
|
234
220
|
/**
|
|
235
221
|
* Makora's GLM models, built from the same models list this extension
|
|
@@ -274,8 +260,6 @@ export function isMakoraGlmVllmModel(model: string): boolean {
|
|
|
274
260
|
* - DS V4 Flash: `include_reasoning: true` + `chat_template_kwargs: { thinking: true }`
|
|
275
261
|
* + `reasoning_effort`. `include_reasoning` alone returns `reasoning: null`
|
|
276
262
|
* on this vLLM build — both params are required.
|
|
277
|
-
* - MiniMax M3: `chat_template_kwargs: { enable_thinking: true }` +
|
|
278
|
-
* `reasoning_effort`. Returns `reasoning_content` field.
|
|
279
263
|
*
|
|
280
264
|
* This hook rewrites the payload accordingly.
|
|
281
265
|
*/
|
|
@@ -301,11 +285,6 @@ function rewriteVllmPayload(payload: Record<string, unknown>): Record<string, un
|
|
|
301
285
|
const ctq = (p.chat_template_kwargs as Record<string, unknown>) ?? {};
|
|
302
286
|
p.chat_template_kwargs = { ...ctq, thinking: true };
|
|
303
287
|
}
|
|
304
|
-
} else if (ENABLE_THINKING_VLLM_MODELS.has(model)) {
|
|
305
|
-
// Models using chat_template_kwargs.enable_thinking (e.g. MiniMax M3)
|
|
306
|
-
delete p.thinking;
|
|
307
|
-
const ctq = (p.chat_template_kwargs as Record<string, unknown>) ?? {};
|
|
308
|
-
p.chat_template_kwargs = { ...ctq, enable_thinking: true };
|
|
309
288
|
}
|
|
310
289
|
|
|
311
290
|
return p;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-makora-provider",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Makora provider extension for pi - Access DeepSeek V4, GLM 5.2, Kimi K2.7 Code, Llama 3.3, Qwen 3.6, and more through the Makora inference API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
package/patch.json
CHANGED
|
@@ -30,34 +30,6 @@
|
|
|
30
30
|
"requiresReasoningContentOnAssistantMessages": true
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
"nvidia/Kimi-K2.6-NVFP4": {
|
|
34
|
-
"reasoning": true,
|
|
35
|
-
"input": [
|
|
36
|
-
"text",
|
|
37
|
-
"image"
|
|
38
|
-
],
|
|
39
|
-
"notes": "Reasoning on by default; client-side tool call parsing (vLLM streaming parser bypass)",
|
|
40
|
-
"thinkingLevelMap": {
|
|
41
|
-
"minimal": "low",
|
|
42
|
-
"xhigh": "high"
|
|
43
|
-
},
|
|
44
|
-
"compat": {
|
|
45
|
-
"thinkingFormat": "qwen-chat-template",
|
|
46
|
-
"supportsReasoningEffort": true
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"openai/gpt-oss-120b": {
|
|
50
|
-
"reasoning": true,
|
|
51
|
-
"notes": "Reasoning always on",
|
|
52
|
-
"thinkingLevelMap": {
|
|
53
|
-
"minimal": "low",
|
|
54
|
-
"xhigh": "high"
|
|
55
|
-
},
|
|
56
|
-
"compat": {
|
|
57
|
-
"thinkingFormat": "qwen-chat-template",
|
|
58
|
-
"supportsReasoningEffort": true
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
33
|
"unsloth/Qwen3.6-27B-NVFP4": {
|
|
62
34
|
"reasoning": true,
|
|
63
35
|
"notes": "`enable_thinking` via `qwen-chat-template`; `preserve_thinking` via `chatTemplateKwargs` for multi-turn continuity; returns `reasoning` field; client-side tool call parsing (vLLM streaming parser bypass)",
|
|
@@ -88,26 +60,6 @@
|
|
|
88
60
|
}
|
|
89
61
|
}
|
|
90
62
|
},
|
|
91
|
-
"MiniMaxAI/MiniMax-M3-MXFP8": {
|
|
92
|
-
"reasoning": true,
|
|
93
|
-
"input": [
|
|
94
|
-
"text",
|
|
95
|
-
"image"
|
|
96
|
-
],
|
|
97
|
-
"notes": "Reasoning via `chat_template_kwargs.enable_thinking`; returns `reasoning_content` field",
|
|
98
|
-
"thinkingLevelMap": {
|
|
99
|
-
"minimal": null,
|
|
100
|
-
"low": null,
|
|
101
|
-
"medium": null,
|
|
102
|
-
"high": "high",
|
|
103
|
-
"xhigh": "max"
|
|
104
|
-
},
|
|
105
|
-
"compat": {
|
|
106
|
-
"thinkingFormat": "deepseek",
|
|
107
|
-
"supportsReasoningEffort": true,
|
|
108
|
-
"requiresReasoningContentOnAssistantMessages": true
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
63
|
"moonshotai/Kimi-K2.7-Code": {
|
|
112
64
|
"reasoning": true,
|
|
113
65
|
"input": [
|
|
@@ -127,20 +79,6 @@
|
|
|
127
79
|
}
|
|
128
80
|
}
|
|
129
81
|
},
|
|
130
|
-
"zai-org/GLM-5.1-FP8": {
|
|
131
|
-
"contextWindow": 200000,
|
|
132
|
-
"reasoning": true,
|
|
133
|
-
"notes": "`enable_thinking` via `qwen-chat-template`; returns `reasoning_content` field; client-side tool call parsing (vLLM streaming parser bypass)",
|
|
134
|
-
"thinkingLevelMap": {
|
|
135
|
-
"minimal": "low",
|
|
136
|
-
"xhigh": "high"
|
|
137
|
-
},
|
|
138
|
-
"compat": {
|
|
139
|
-
"thinkingFormat": "qwen-chat-template",
|
|
140
|
-
"supportsReasoningEffort": true,
|
|
141
|
-
"zaiToolStream": true
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
82
|
"zai-org/GLM-5.2-FP8": {
|
|
145
83
|
"reasoning": true,
|
|
146
84
|
"notes": "`enable_thinking` via `qwen-chat-template`; effort via `reasoning_effort` (only `high`/`max` distinct, per vLLM GLM-5.2 recipe); thinking levels aligned with neuralwatt GLM 5.2; returns `reasoning` field",
|