mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 07:52:53 +00:00
Refactor OpenAI provider identity so OpenAI remains the canonical provider for API-key and OAuth-backed flows while legacy openai-codex state is doctor/migration-only. Keeps OpenAI Codex Responses as an API/transport class rather than a provider identity, moves auth aliases through providerAuthAliases, updates doctor repair sequencing for old auth/profile state, and refreshes tests/docs around the canonical OpenAI behavior.
19 lines
663 B
TypeScript
19 lines
663 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { resolveThinkingProfile } from "./provider-policy-api.js";
|
|
|
|
describe("OpenAI provider policy artifact", () => {
|
|
it("keeps legacy Codex thinking policy for openai-codex refs", () => {
|
|
const codexProfile = resolveThinkingProfile({
|
|
provider: "openai-codex",
|
|
modelId: "gpt-5.3-codex-spark",
|
|
});
|
|
const openaiProfile = resolveThinkingProfile({
|
|
provider: "openai",
|
|
modelId: "gpt-5.3-codex-spark",
|
|
});
|
|
|
|
expect(codexProfile?.levels.map((level) => level.id)).toContain("xhigh");
|
|
expect(openaiProfile?.levels.map((level) => level.id)).not.toContain("xhigh");
|
|
});
|
|
});
|