mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-30 19:59:35 +00:00
test: show openai default allowlist
This commit is contained in:
@@ -5,7 +5,8 @@ import { applyOpenAIConfig, applyOpenAIProviderConfig, OPENAI_DEFAULT_MODEL } fr
|
||||
describe("openai default models", () => {
|
||||
it("adds allowlist entry for the default model", () => {
|
||||
const next = applyOpenAIProviderConfig({});
|
||||
expect(Object.keys(next.agents?.defaults?.models ?? {})).toContain(OPENAI_DEFAULT_MODEL);
|
||||
expect(Object.keys(next.agents?.defaults?.models ?? {})).toEqual([OPENAI_DEFAULT_MODEL]);
|
||||
expect(next.agents?.defaults?.models?.[OPENAI_DEFAULT_MODEL]).toEqual({ alias: "GPT" });
|
||||
});
|
||||
|
||||
it("preserves existing alias for the default model", () => {
|
||||
|
||||
Reference in New Issue
Block a user