Skip to content

Commit 9dc4a27

Browse files
committed
fix(ci): align cron tests with default model
1 parent 8ab8998 commit 9dc4a27

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/cron/isolated-agent/run.fast-mode.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
const runCronIsolatedAgentTurn = await loadRunCronIsolatedAgentTurn();
1717

1818
const OPENAI_GPT4_MODEL = "openai/gpt-4";
19+
const EXPECTED_OPENAI_MODEL = "gpt-5.4";
1920

2021
function mockSuccessfulModelFallback() {
2122
runWithModelFallbackMock.mockImplementation(async ({ provider, model, run }) => {
@@ -89,7 +90,7 @@ async function runFastModeCase(params: {
8990
expect(runEmbeddedPiAgentMock).toHaveBeenCalledOnce();
9091
expect(runEmbeddedPiAgentMock.mock.calls[0][0]).toMatchObject({
9192
provider: "openai",
92-
model: "gpt-4",
93+
model: EXPECTED_OPENAI_MODEL,
9394
fastMode: params.expectedFastMode,
9495
allowGatewaySubagentBinding: true,
9596
});

src/cron/isolated-agent/run.skill-filter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ describe("runCronIsolatedAgentTurn — skill filter", () => {
353353

354354
expect(result.status).toBe("ok");
355355
expect(session.sessionEntry.contextTokens).toBe(512_000);
356-
expect(lookupContextTokensMock).toHaveBeenCalledWith("gpt-4", {
356+
expect(lookupContextTokensMock).toHaveBeenCalledWith("gpt-5.4", {
357357
allowAsyncLoad: false,
358358
});
359359
});

0 commit comments

Comments
 (0)