test(ai): refresh responses and codex e2e coverage closes #3576
This commit is contained in:
@@ -447,8 +447,8 @@ describe("Generate E2E Tests", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe.skipIf(!process.env.OPENAI_API_KEY)("OpenAI Responses Provider (gpt-5-mini)", () => {
|
||||
const llm = getModel("openai", "gpt-5-mini");
|
||||
describe.skipIf(!process.env.OPENAI_API_KEY)("OpenAI Responses Provider (gpt-5.4)", () => {
|
||||
const llm = getModel("openai", "gpt-5.4");
|
||||
|
||||
it("should complete basic text generation", { retry: 3 }, async () => {
|
||||
await basicTextGeneration(llm);
|
||||
@@ -1120,8 +1120,8 @@ describe("Generate E2E Tests", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("OpenAI Codex Provider (gpt-5.3-codex)", () => {
|
||||
const llm = getModel("openai-codex", "gpt-5.3-codex");
|
||||
describe("OpenAI Codex Provider (gpt-5.5)", () => {
|
||||
const llm = getModel("openai-codex", "gpt-5.5");
|
||||
|
||||
it.skipIf(!openaiCodexToken)("should complete basic text generation", { retry: 3 }, async () => {
|
||||
await basicTextGeneration(llm, { apiKey: openaiCodexToken });
|
||||
@@ -1148,8 +1148,8 @@ describe("Generate E2E Tests", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("OpenAI Codex Provider (gpt-5.3-codex via WebSocket)", () => {
|
||||
const llm = getModel("openai-codex", "gpt-5.3-codex");
|
||||
describe("OpenAI Codex Provider (gpt-5.5 via WebSocket)", () => {
|
||||
const llm = getModel("openai-codex", "gpt-5.5");
|
||||
const wsOptions = { apiKey: openaiCodexToken, transport: "websocket" as const };
|
||||
|
||||
it.skipIf(!openaiCodexToken)("should complete basic text generation", { retry: 3 }, async () => {
|
||||
@@ -1237,13 +1237,16 @@ describe("Generate E2E Tests", () => {
|
||||
|
||||
const payload = capturedPayload as {
|
||||
additionalModelRequestFields?: {
|
||||
thinking?: { type?: string };
|
||||
thinking?: { type?: string; display?: string };
|
||||
output_config?: { effort?: string };
|
||||
anthropic_beta?: string[];
|
||||
};
|
||||
};
|
||||
|
||||
expect(payload.additionalModelRequestFields?.thinking).toEqual({ type: "adaptive" });
|
||||
expect(payload.additionalModelRequestFields?.thinking).toEqual({
|
||||
type: "adaptive",
|
||||
display: "summarized",
|
||||
});
|
||||
expect(payload.additionalModelRequestFields?.output_config).toEqual({ effort: "max" });
|
||||
expect(payload.additionalModelRequestFields?.anthropic_beta).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user