fix: add code formatting to /model command output (#472)

This commit is contained in:
Cameron
2026-03-03 11:13:12 -08:00
committed by GitHub
parent a2e46f7420
commit ae25c8d349

View File

@@ -644,15 +644,15 @@ export class LettaBot implements AgentSession {
const current = await getAgentModel(agentId);
const { models: recommendedModels } = await import('../utils/model-selection.js');
const lines = [
`Current model: ${current || '(unknown)'}`,
`Current model: \`${current || '(unknown)'}\``,
'',
'Recommended models:',
];
for (const m of recommendedModels) {
const marker = m.handle === current ? ' (current)' : '';
lines.push(` ${m.label} - ${m.handle}${marker}`);
lines.push(` ${m.label} - \`${m.handle}\`${marker}`);
}
lines.push('', 'Use /model <handle> to switch.');
lines.push('', 'Use `/model <handle>` to switch.');
return lines.join('\n');
}
default: