MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / formatModelPillLabel

Function formatModelPillLabel

apps/web/components/codex-sessions-shell.tsx:79–90  ·  view source on GitHub ↗
(
  modelOptions: ThreadModelOptions | null,
  initialSettings: WebCodexThreadSettings | null,
)

Source from the content-addressed store, hash-verified

77}
78
79function formatModelPillLabel(
80 modelOptions: ThreadModelOptions | null,
81 initialSettings: WebCodexThreadSettings | null,
82) {
83 const modelLabel = modelOptions?.effectiveModelLabel
84 ?? initialSettings?.model
85 ?? '默认模型';
86 const effortLabel = modelOptions?.effectiveReasoningEffort
87 ?? initialSettings?.reasoningEffort
88 ?? '默认';
89 return `${modelLabel} · ${effortLabel}`;
90}
91
92function formatLaunchModelPillLabel(
93 modelOptions: ThreadModelOptions | null,

Callers 1

CodexThreadPaneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected