MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / formatModel

Function formatModel

src/setup/model-detector.ts:332–343  ·  view source on GitHub ↗
(m: DetectedModel)

Source from the content-addressed store, hash-verified

330
331/** Pretty-format a detected model for display in the wizard list. */
332export 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}

Callers 3

runSetupFunction · 0.85
buildModelChoicesFunction · 0.85
buildLightLocalChoicesFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected