pi-tsgw 0.0.8 → 0.0.10

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,11 @@ 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.1 Sol:https://developers.openai.com/api/docs/models/gpt-6.1-sol
8
+ * Standard ≤272K:$2 input / $0.1 cached / $2.5 cache write / $10 output(2026-09-30)。
9
+ * GPT-6 Sol:https://developers.openai.com/api/docs/models/gpt-6-sol
10
+ * GPT-6 Luna:https://developers.openai.com/api/docs/models/gpt-6-luna
11
+ * 两款价格为 Standard ≤272K 输入费率(2026-09-23 核验)。
7
12
  */
8
13
  export function openaiModels(root: string): ProviderModelConfig[] {
9
14
  const v1 = `${root}/v1`;
@@ -26,6 +31,64 @@ export function openaiModels(root: string): ProviderModelConfig[] {
26
31
  contextWindow: 1050000,
27
32
  maxTokens: 128000,
28
33
  },
34
+ {
35
+ id: "gpt-6.1-sol",
36
+ name: "GPT 6.1 Sol",
37
+ api: "openai-responses",
38
+ baseUrl: v1,
39
+ reasoning: true,
40
+ thinkingLevelMap: {
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.1, cacheWrite: 2.5 },
49
+ contextWindow: 1050000,
50
+ maxTokens: 128000,
51
+ },
52
+ {
53
+ id: "gpt-6-sol",
54
+ name: "GPT 6 Sol",
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: 2, output: 10, cacheRead: 0.2, cacheWrite: 2.5 },
69
+ contextWindow: 1050000,
70
+ maxTokens: 128000,
71
+ },
72
+ {
73
+ id: "gpt-6-luna",
74
+ name: "GPT 6 Luna",
75
+ api: "openai-responses",
76
+ baseUrl: v1,
77
+ reasoning: true,
78
+ thinkingLevelMap: {
79
+ off: "none",
80
+ minimal: "low",
81
+ low: "low",
82
+ medium: "medium",
83
+ high: "high",
84
+ xhigh: "xhigh",
85
+ max: "max",
86
+ },
87
+ input: ["text", "image"],
88
+ cost: { input: 0.1, output: 0.5, cacheRead: 0.01, cacheWrite: 0.125 },
89
+ contextWindow: 1050000,
90
+ maxTokens: 128000,
91
+ },
29
92
  {
30
93
  id: "gpt-5.6-sol",
31
94
  name: "GPT 5.6 Sol",
@@ -110,6 +173,9 @@ function applyOpenAIResponses(writer: PayloadWriter, modelId: string): void {
110
173
 
111
174
  export const openaiThinking = {
112
175
  "gpt-6-astra": (w, c) => applyOpenAIResponses(w, c.modelId),
176
+ "gpt-6.1-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
177
+ "gpt-6-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
178
+ "gpt-6-luna": (w, c) => applyOpenAIResponses(w, c.modelId),
113
179
  "gpt-5.6-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
114
180
  "gpt-5.6-terra": (w, c) => applyOpenAIResponses(w, c.modelId),
115
181
  "gpt-5.6-luna": (w, c) => applyOpenAIResponses(w, c.modelId),
@@ -25,6 +25,9 @@ const OPENAI_COMPLETIONS = "openai-completions";
25
25
  // 支持内置查询的模型名单(GPT Responses 系列)。
26
26
  const BUILTIN_SEARCH_MODELS = new Set([
27
27
  "gpt-6-astra",
28
+ "gpt-6.1-sol",
29
+ "gpt-6-sol",
30
+ "gpt-6-luna",
28
31
  "gpt-5.6-sol",
29
32
  "gpt-5.6-terra",
30
33
  "gpt-5.6-luna",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-tsgw",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
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": [