MCPcopy Index your code
hub / github.com/pingdotgg/t3code / getCodexServiceTierOptionValue

Function getCodexServiceTierOptionValue

apps/server/src/codexModelOptions.ts:7–14  ·  view source on GitHub ↗
(
  modelSelection: ModelSelection | null | undefined,
)

Source from the content-addressed store, hash-verified

5} from "@t3tools/shared/model";
6
7export 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}

Callers 4

startSessionFunction · 0.90
CodexAdapter.tsFile · 0.90

Tested by

no test coverage detected