fix(ai): support xhigh for Codex GPT-5.5

This commit is contained in:
Mario Zechner
2026-04-23 22:49:09 +02:00
parent 8700ac1f0e
commit bf4aa3a601
7 changed files with 80 additions and 12 deletions

View File

@@ -1135,12 +1135,12 @@ describe("Generate E2E Tests", () => {
await handleStreaming(llm, { apiKey: openaiCodexToken });
});
it.skipIf(!openaiCodexToken)("should handle thinking with reasoningEffort high", { retry: 3 }, async () => {
await handleThinking(llm, { apiKey: openaiCodexToken, reasoningEffort: "high" });
it.skipIf(!openaiCodexToken)("should handle thinking with reasoningEffort xhigh", { retry: 3 }, async () => {
await handleThinking(llm, { apiKey: openaiCodexToken, reasoningEffort: "xhigh" });
});
it.skipIf(!openaiCodexToken)("should handle multi-turn with thinking and tools", { retry: 3 }, async () => {
await multiTurn(llm, { apiKey: openaiCodexToken, reasoningEffort: "high" });
await multiTurn(llm, { apiKey: openaiCodexToken, reasoningEffort: "xhigh" });
});
it.skipIf(!openaiCodexToken)("should handle image input", { retry: 3 }, async () => {
@@ -1164,12 +1164,12 @@ describe("Generate E2E Tests", () => {
await handleStreaming(llm, wsOptions);
});
it.skipIf(!openaiCodexToken)("should handle thinking with reasoningEffort high", { retry: 3 }, async () => {
await handleThinking(llm, { ...wsOptions, reasoningEffort: "high" });
it.skipIf(!openaiCodexToken)("should handle thinking with reasoningEffort xhigh", { retry: 3 }, async () => {
await handleThinking(llm, { ...wsOptions, reasoningEffort: "xhigh" });
});
it.skipIf(!openaiCodexToken)("should handle multi-turn with thinking and tools", { retry: 3 }, async () => {
await multiTurn(llm, { ...wsOptions, reasoningEffort: "high" });
await multiTurn(llm, { ...wsOptions, reasoningEffort: "xhigh" });
});
it.skipIf(!openaiCodexToken)("should handle image input", { retry: 3 }, async () => {