惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
J
Java Code Geeks
Vercel News
Vercel News
A
About on SuperTechFans
G
Google Developers Blog
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
博客园 - 司徒正美
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园_首页
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
量子位
雷峰网
雷峰网
IT之家
IT之家
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
博客园 - 三生石上(FineUI控件)
H
Help Net Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test(openai): cover GPT-5.5 defaults · openclaw/openclaw@...
steipete · 2026-04-24 · via Recent Commits to openclaw:main

@@ -229,6 +229,101 @@ describe("buildOpenAIProvider", () => {

229229

});

230230

});

231231232+

it("resolves gpt-5.5 and gpt-5.5-pro with launch metadata", () => {

233+

const provider = buildOpenAIProvider();

234+235+

const model = provider.resolveDynamicModel?.({

236+

provider: "openai",

237+

modelId: "gpt-5.5",

238+

modelRegistry: {

239+

find: (_provider: string, id: string) =>

240+

id === "gpt-5.4"

241+

? {

242+

id,

243+

name: "GPT-5.4",

244+

provider: "openai",

245+

api: "openai-responses",

246+

baseUrl: "https://api.openai.com/v1",

247+

reasoning: true,

248+

input: ["text", "image"],

249+

cost: { input: 2.5, output: 15, cacheRead: 0.25, cacheWrite: 0 },

250+

contextWindow: 1_050_000,

251+

maxTokens: 128_000,

252+

}

253+

: null,

254+

} as never,

255+

});

256+

const pro = provider.resolveDynamicModel?.({

257+

provider: "openai",

258+

modelId: "gpt-5.5-pro",

259+

modelRegistry: {

260+

find: (_provider: string, id: string) =>

261+

id === "gpt-5.4-pro"

262+

? {

263+

id,

264+

name: "GPT-5.4 Pro",

265+

provider: "openai",

266+

api: "openai-responses",

267+

baseUrl: "https://api.openai.com/v1",

268+

reasoning: true,

269+

input: ["text", "image"],

270+

cost: { input: 30, output: 180, cacheRead: 0, cacheWrite: 0 },

271+

contextWindow: 1_050_000,

272+

maxTokens: 128_000,

273+

}

274+

: null,

275+

} as never,

276+

});

277+278+

expect(model).toMatchObject({

279+

provider: "openai",

280+

id: "gpt-5.5",

281+

api: "openai-responses",

282+

baseUrl: "https://api.openai.com/v1",

283+

contextWindow: 1_000_000,

284+

maxTokens: 128_000,

285+

cost: { input: 5, output: 30, cacheRead: 0, cacheWrite: 0 },

286+

});

287+

expect(pro).toMatchObject({

288+

provider: "openai",

289+

id: "gpt-5.5-pro",

290+

api: "openai-responses",

291+

baseUrl: "https://api.openai.com/v1",

292+

contextWindow: 1_000_000,

293+

maxTokens: 128_000,

294+

cost: { input: 30, output: 180, cacheRead: 0, cacheWrite: 0 },

295+

});

296+

});

297+298+

it("surfaces gpt-5.5 in xhigh and augmented catalog metadata", () => {

299+

const provider = buildOpenAIProvider();

300+301+

expect(

302+

provider

303+

.resolveThinkingProfile?.({

304+

provider: "openai",

305+

modelId: "gpt-5.5",

306+

} as never)

307+

?.levels.some((level) => level.id === "xhigh"),

308+

).toBe(true);

309+310+

const entries = provider.augmentModelCatalog?.({

311+

env: process.env,

312+

entries: [{ provider: "openai", id: "gpt-5.4", name: "GPT-5.4" }],

313+

} as never);

314+315+

expect(entries).toContainEqual(

316+

expect.objectContaining({

317+

provider: "openai",

318+

id: "gpt-5.5",

319+

name: "gpt-5.5",

320+

reasoning: true,

321+

input: ["text", "image"],

322+

contextWindow: 1_000_000,

323+

}),

324+

);

325+

});

326+232327

it("keeps modern live selection on OpenAI 5.2+ and Codex 5.2+", () => {

233328

const provider = buildOpenAIProvider();

234329

const codexProvider = buildOpenAICodexProviderPlugin();

@@ -251,6 +346,12 @@ describe("buildOpenAIProvider", () => {

251346

modelId: "gpt-5.4",

252347

} as never),

253348

).toBe(true);

349+

expect(

350+

provider.isModernModelRef?.({

351+

provider: "openai",

352+

modelId: "gpt-5.5",

353+

} as never),

354+

).toBe(true);

254355255356

expect(

256357

codexProvider.isModernModelRef?.({

@@ -276,6 +377,12 @@ describe("buildOpenAIProvider", () => {

276377

modelId: "gpt-5.4",

277378

} as never),

278379

).toBe(true);

380+

expect(

381+

codexProvider.isModernModelRef?.({

382+

provider: "openai-codex",

383+

modelId: "gpt-5.5",

384+

} as never),

385+

).toBe(true);

279386

});

280387281388

it("owns replay policy for OpenAI and Codex transports", () => {