[codex] Sync app-server protocol, service tiers, and provider startup (#3036)
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
1916ac6d55
commit
ae7e88b0e0
20 files changed
+4024
-1870
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { assert, it } from "@effect/vitest";
|
||||
|
||||
import { ProviderInstanceId } from "@t3tools/contracts";
|
||||
import { createModelSelection } from "@t3tools/shared/model";
|
||||
|
||||
import { getCodexServiceTierOptionValue } from "./codexModelOptions.ts";
|
||||
|
||||
it("returns the selected Codex service tier id", () => {
|
||||
const selection = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.5", [
|
||||
{ id: "serviceTier", value: "flex" },
|
||||
]);
|
||||
|
||||
assert.equal(getCodexServiceTierOptionValue(selection), "flex");
|
||||
});
|
||||
|
||||
it("keeps legacy persisted fast mode selections working", () => {
|
||||
const selection = createModelSelection(ProviderInstanceId.make("codex"), "gpt-5.4", [
|
||||
{ id: "fastMode", value: true },
|
||||
]);
|
||||
|
||||
assert.equal(getCodexServiceTierOptionValue(selection), "fast");
|
||||
});
|
||||
Reference in new issue
Block a user