(m: DetectedModel)
| 330 | |
| 331 | /** Pretty-format a detected model for display in the wizard list. */ |
| 332 | export function formatModel(m: DetectedModel): { label: string; hint: string } { |
| 333 | const parts: string[] = []; |
| 334 | if (m.source === 'lm-studio') parts.push('LM Studio'); |
| 335 | else parts.push('Ollama'); |
| 336 | if (m.paramsB) parts.push(`~${m.paramsB}B params`); |
| 337 | if (m.sizeGb) parts.push(`${m.sizeGb} GB`); |
| 338 | if (m.toolCallsLikely) parts.push('✓ tool-calls'); |
| 339 | return { |
| 340 | label: m.label, |
| 341 | hint: parts.join(' · '), |
| 342 | }; |
| 343 | } |
no test coverage detected