fix tests: use updated models

This commit is contained in:
David Brailovsky 2026-07-24 18:52:56 +00:00
parent a9f5b1c123
commit 7304d8f8af
2 changed files with 4 additions and 4 deletions

View file

@ -90,7 +90,7 @@ describe.skipIf(!process.env.OPENAI_API_KEY || !process.env.ANTHROPIC_API_KEY)(
// 6. With fix: tool calls/results converted to text, conversation continues
const modelA = getModel("openai", "gpt-5-mini");
const modelB = getModel("openai", "gpt-5.2-codex");
const modelB = getModel("openai", "gpt-5.5");
const apiKey = getEnvApiKey("openai");
if (!apiKey) {
@ -189,7 +189,7 @@ describe.skipIf(!process.env.OPENAI_API_KEY || !process.env.ANTHROPIC_API_KEY)(
// 5. Should work because foreign IDs have no pairing expectation
const anthropicModel = getModel("anthropic", "claude-sonnet-4-5");
const codexModel = getModel("openai", "gpt-5.2-codex");
const codexModel = getModel("openai", "gpt-5.5");
const anthropicApiKey = getEnvApiKey("anthropic");
const openaiApiKey = getEnvApiKey("openai");

View file

@ -15,10 +15,10 @@ function makeContext(): Context {
}
describe.skipIf(!process.env.OPENAI_API_KEY)("xhigh reasoning", () => {
describe("codex-max (supports xhigh)", () => {
describe("gpt 5.5 (supports xhigh)", () => {
// Note: codex models only support the responses API, not chat completions
it("should work with openai-responses", async () => {
const model = getModel("openai", "gpt-5.1-codex-max");
const model = getModel("openai", "gpt-5.5");
const s = stream(model, makeContext(), { reasoningEffort: "xhigh" });
let hasThinking = false;