mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
fix(ci): align cron tests with default model
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
const runCronIsolatedAgentTurn = await loadRunCronIsolatedAgentTurn();
|
||||
|
||||
const OPENAI_GPT4_MODEL = "openai/gpt-4";
|
||||
const EXPECTED_OPENAI_MODEL = "gpt-5.4";
|
||||
|
||||
function mockSuccessfulModelFallback() {
|
||||
runWithModelFallbackMock.mockImplementation(async ({ provider, model, run }) => {
|
||||
@@ -89,7 +90,7 @@ async function runFastModeCase(params: {
|
||||
expect(runEmbeddedPiAgentMock).toHaveBeenCalledOnce();
|
||||
expect(runEmbeddedPiAgentMock.mock.calls[0][0]).toMatchObject({
|
||||
provider: "openai",
|
||||
model: "gpt-4",
|
||||
model: EXPECTED_OPENAI_MODEL,
|
||||
fastMode: params.expectedFastMode,
|
||||
allowGatewaySubagentBinding: true,
|
||||
});
|
||||
|
||||
@@ -353,7 +353,7 @@ describe("runCronIsolatedAgentTurn — skill filter", () => {
|
||||
|
||||
expect(result.status).toBe("ok");
|
||||
expect(session.sessionEntry.contextTokens).toBe(512_000);
|
||||
expect(lookupContextTokensMock).toHaveBeenCalledWith("gpt-4", {
|
||||
expect(lookupContextTokensMock).toHaveBeenCalledWith("gpt-5.4", {
|
||||
allowAsyncLoad: false,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user