mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
25 lines
895 B
TypeScript
25 lines
895 B
TypeScript
// Openai tests cover provider policy api plugin behavior.
|
|
import { describe, expect, it } from "vitest";
|
|
import { resolveThinkingProfile } from "./provider-policy-api.js";
|
|
|
|
describe("OpenAI provider policy artifact", () => {
|
|
it("keeps OpenAI thinking policy for openai refs", () => {
|
|
const codexProfile = resolveThinkingProfile({
|
|
provider: "openai",
|
|
modelId: "gpt-5.3-codex-spark",
|
|
});
|
|
const openaiProfile = resolveThinkingProfile({
|
|
provider: "openai",
|
|
modelId: "gpt-5.3",
|
|
});
|
|
const openaiMiniProfile = resolveThinkingProfile({
|
|
provider: "openai",
|
|
modelId: "gpt-5.4-mini",
|
|
});
|
|
|
|
expect(codexProfile?.levels.map((level) => level.id)).toContain("xhigh");
|
|
expect(openaiProfile?.levels.map((level) => level.id)).not.toContain("xhigh");
|
|
expect(openaiMiniProfile?.levels.map((level) => level.id)).toContain("xhigh");
|
|
});
|
|
});
|