Skip to content
Source
Sign inSign up
Open History to see the last commit

codexModelOptions.test.ts

14 lines509 Bytes

1import { assert, it } from "@effect/vitest";
2​
3import { ProviderInstanceId } from "@t3tools/contracts";
4import { createModelSelection } from "@t3tools/shared/model";
5​
6import { getCodexServiceTierOptionValue } from "./codexModelOptions.ts";
7​
8it("keeps legacy persisted fast mode selections working", () => {
9 const selection = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.4", [
10 { id: "fastMode", value: true },
11 ]);
12​
13 assert.equal(getCodexServiceTierOptionValue(selection), "fast");
14});