mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:18:26 +00:00
Tests: narrow OpenAI default model assertion typing
This commit is contained in:
committed by
Peter Steinberger
parent
68b9d89ee7
commit
fce4d76a78
@@ -48,7 +48,9 @@ describe("applyAuthChoiceOpenAI", () => {
|
||||
provider: "openai",
|
||||
mode: "api_key",
|
||||
});
|
||||
expect(result?.config.agents?.defaults?.model?.primary).toBe("openai/gpt-5.1-codex");
|
||||
const defaultModel = result?.config.agents?.defaults?.model;
|
||||
const primaryModel = typeof defaultModel === "string" ? defaultModel : defaultModel?.primary;
|
||||
expect(primaryModel).toBe("openai/gpt-5.1-codex");
|
||||
expect(text).not.toHaveBeenCalled();
|
||||
|
||||
const parsed = await readAuthProfilesForAgent<{
|
||||
|
||||
Reference in New Issue
Block a user