@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 14 lines 493 Bytes
Raw
1 import type { ModelSelection } from "@t3tools/contracts";
2 import {
3 getModelSelectionBooleanOptionValue,
4 getModelSelectionStringOptionValue,
5 } from "@t3tools/shared/model";
6
7 export function getCodexServiceTierOptionValue(
8 modelSelection: ModelSelection | null | undefined,
9 ): string | undefined {
10 return (
11 getModelSelectionStringOptionValue(modelSelection, "serviceTier") ??
12 (getModelSelectionBooleanOptionValue(modelSelection, "fastMode") === true ? "fast" : undefined)
13 );
14 }