[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,14 @@
|
||||
import type { ModelSelection } from "@t3tools/contracts";
|
||||
import {
|
||||
getModelSelectionBooleanOptionValue,
|
||||
getModelSelectionStringOptionValue,
|
||||
} from "@t3tools/shared/model";
|
||||
|
||||
export function getCodexServiceTierOptionValue(
|
||||
modelSelection: ModelSelection | null | undefined,
|
||||
): string | undefined {
|
||||
return (
|
||||
getModelSelectionStringOptionValue(modelSelection, "serviceTier") ??
|
||||
(getModelSelectionBooleanOptionValue(modelSelection, "fastMode") === true ? "fast" : undefined)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user