( modelOptions: ThreadModelOptions | null, initialSettings: WebCodexThreadSettings | null, )
| 77 | } |
| 78 | |
| 79 | function 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 | |
| 92 | function formatLaunchModelPillLabel( |
| 93 | modelOptions: ThreadModelOptions | null, |