pi-tsgw 0.0.7 → 0.0.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.
|
@@ -10,8 +10,8 @@ export function minimaxModels(root: string): ProviderModelConfig[] {
|
|
|
10
10
|
const v1 = `${root}/v1`;
|
|
11
11
|
return [
|
|
12
12
|
{
|
|
13
|
-
id: "
|
|
14
|
-
name: "
|
|
13
|
+
id: "MiniMax-M3",
|
|
14
|
+
name: "MiniMax-M3",
|
|
15
15
|
api: "openai-completions",
|
|
16
16
|
baseUrl: v1,
|
|
17
17
|
reasoning: true,
|
|
@@ -27,7 +27,7 @@ export function minimaxModels(root: string): ProviderModelConfig[] {
|
|
|
27
27
|
compat: OPENAI_COMPLETIONS_COMPAT,
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
id: "
|
|
30
|
+
id: "MiniMax-M2.7",
|
|
31
31
|
name: "MiniMax-M2.7",
|
|
32
32
|
api: "openai-completions",
|
|
33
33
|
baseUrl: v1,
|
|
@@ -40,7 +40,7 @@ export function minimaxModels(root: string): ProviderModelConfig[] {
|
|
|
40
40
|
compat: OPENAI_COMPLETIONS_COMPAT,
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
id: "
|
|
43
|
+
id: "MiniMax-M2.5",
|
|
44
44
|
name: "MiniMax-M2.5",
|
|
45
45
|
api: "openai-completions",
|
|
46
46
|
baseUrl: v1,
|
|
@@ -53,7 +53,7 @@ export function minimaxModels(root: string): ProviderModelConfig[] {
|
|
|
53
53
|
compat: OPENAI_COMPLETIONS_COMPAT,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
id: "
|
|
56
|
+
id: "MiniMax-M2.1",
|
|
57
57
|
name: "MiniMax-M2.1",
|
|
58
58
|
api: "openai-completions",
|
|
59
59
|
baseUrl: v1,
|
|
@@ -76,9 +76,9 @@ function applyMiniMax(writer: PayloadWriter, level: ThinkingLevel): void {
|
|
|
76
76
|
writer.setThinking({ type: level === "off" ? "disabled" : "adaptive" });
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export const minimaxThinking
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
}
|
|
79
|
+
export const minimaxThinking = {
|
|
80
|
+
"MiniMax-M3": (w, c) => applyMiniMax(w, c.thinkingLevel),
|
|
81
|
+
"MiniMax-M2.7": (w, c) => applyMiniMax(w, c.thinkingLevel),
|
|
82
|
+
"MiniMax-M2.5": (w, c) => applyMiniMax(w, c.thinkingLevel),
|
|
83
|
+
"MiniMax-M2.1": (w, c) => applyMiniMax(w, c.thinkingLevel),
|
|
84
|
+
} satisfies Record<string, ThinkingApplier>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-tsgw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Pi extension for the TOSSP AIH gateway: per-vendor model catalog and thinking operations for openai-completions, openai-responses, anthropic-messages, and google-generative-ai wire protocols.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|