pi-tsgw 0.0.9 → 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,8 @@ 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)。
7
9
  * GPT-6 Sol:https://developers.openai.com/api/docs/models/gpt-6-sol
8
10
  * GPT-6 Luna:https://developers.openai.com/api/docs/models/gpt-6-luna
9
11
  * 两款价格为 Standard ≤272K 输入费率(2026-09-23 核验)。
@@ -29,6 +31,24 @@ export function openaiModels(root: string): ProviderModelConfig[] {
29
31
  contextWindow: 1050000,
30
32
  maxTokens: 128000,
31
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
+ },
32
52
  {
33
53
  id: "gpt-6-sol",
34
54
  name: "GPT 6 Sol",
@@ -153,6 +173,7 @@ function applyOpenAIResponses(writer: PayloadWriter, modelId: string): void {
153
173
 
154
174
  export const openaiThinking = {
155
175
  "gpt-6-astra": (w, c) => applyOpenAIResponses(w, c.modelId),
176
+ "gpt-6.1-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
156
177
  "gpt-6-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
157
178
  "gpt-6-luna": (w, c) => applyOpenAIResponses(w, c.modelId),
158
179
  "gpt-5.6-sol": (w, c) => applyOpenAIResponses(w, c.modelId),
@@ -25,6 +25,7 @@ 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",
28
29
  "gpt-6-sol",
29
30
  "gpt-6-luna",
30
31
  "gpt-5.6-sol",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-tsgw",
3
- "version": "0.0.9",
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": [