pi-tsgw 0.0.8 → 0.0.9
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.
|
@@ -4,6 +4,9 @@ import { type PayloadWriter, type ThinkingApplier } from "../_tools.ts";
|
|
|
4
4
|
/**
|
|
5
5
|
* OpenAI GPT 系列(Responses 协议)。
|
|
6
6
|
* 官方文档:https://platform.openai.com/docs/models
|
|
7
|
+
* GPT-6 Sol:https://developers.openai.com/api/docs/models/gpt-6-sol
|
|
8
|
+
* GPT-6 Luna:https://developers.openai.com/api/docs/models/gpt-6-luna
|
|
9
|
+
* 两款价格为 Standard ≤272K 输入费率(2026-09-23 核验)。
|
|
7
10
|
*/
|
|
8
11
|
export function openaiModels(root: string): ProviderModelConfig[] {
|
|
9
12
|
const v1 = `${root}/v1`;
|
|
@@ -26,6 +29,46 @@ export function openaiModels(root: string): ProviderModelConfig[] {
|
|
|
26
29
|
contextWindow: 1050000,
|
|
27
30
|
maxTokens: 128000,
|
|
28
31
|
},
|
|
32
|
+
{
|
|
33
|
+
id: "gpt-6-sol",
|
|
34
|
+
name: "GPT 6 Sol",
|
|
35
|
+
api: "openai-responses",
|
|
36
|
+
baseUrl: v1,
|
|
37
|
+
reasoning: true,
|
|
38
|
+
thinkingLevelMap: {
|
|
39
|
+
off: "none",
|
|
40
|
+
minimal: "low",
|
|
41
|
+
low: "low",
|
|
42
|
+
medium: "medium",
|
|
43
|
+
high: "high",
|
|
44
|
+
xhigh: "xhigh",
|
|
45
|
+
max: "max",
|
|
46
|
+
},
|
|
47
|
+
input: ["text", "image"],
|
|
48
|
+
cost: { input: 2, output: 10, cacheRead: 0.2, cacheWrite: 2.5 },
|
|
49
|
+
contextWindow: 1050000,
|
|
50
|
+
maxTokens: 128000,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "gpt-6-luna",
|
|
54
|
+
name: "GPT 6 Luna",
|
|
55
|
+
api: "openai-responses",
|
|
56
|
+
baseUrl: v1,
|
|
57
|
+
reasoning: true,
|
|
58
|
+
thinkingLevelMap: {
|
|
59
|
+
off: "none",
|
|
60
|
+
minimal: "low",
|
|
61
|
+
low: "low",
|
|
62
|
+
medium: "medium",
|
|
63
|
+
high: "high",
|
|
64
|
+
xhigh: "xhigh",
|
|
65
|
+
max: "max",
|
|
66
|
+
},
|
|
67
|
+
input: ["text", "image"],
|
|
68
|
+
cost: { input: 0.1, output: 0.5, cacheRead: 0.01, cacheWrite: 0.125 },
|
|
69
|
+
contextWindow: 1050000,
|
|
70
|
+
maxTokens: 128000,
|
|
71
|
+
},
|
|
29
72
|
{
|
|
30
73
|
id: "gpt-5.6-sol",
|
|
31
74
|
name: "GPT 5.6 Sol",
|
|
@@ -110,6 +153,8 @@ function applyOpenAIResponses(writer: PayloadWriter, modelId: string): void {
|
|
|
110
153
|
|
|
111
154
|
export const openaiThinking = {
|
|
112
155
|
"gpt-6-astra": (w, c) => applyOpenAIResponses(w, c.modelId),
|
|
156
|
+
"gpt-6-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
|
|
157
|
+
"gpt-6-luna": (w, c) => applyOpenAIResponses(w, c.modelId),
|
|
113
158
|
"gpt-5.6-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
|
|
114
159
|
"gpt-5.6-terra": (w, c) => applyOpenAIResponses(w, c.modelId),
|
|
115
160
|
"gpt-5.6-luna": (w, c) => applyOpenAIResponses(w, c.modelId),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-tsgw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
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": [
|