fix: add code formatting to /model command output (#472)
This commit is contained in:
@@ -644,15 +644,15 @@ export class LettaBot implements AgentSession {
|
|||||||
const current = await getAgentModel(agentId);
|
const current = await getAgentModel(agentId);
|
||||||
const { models: recommendedModels } = await import('../utils/model-selection.js');
|
const { models: recommendedModels } = await import('../utils/model-selection.js');
|
||||||
const lines = [
|
const lines = [
|
||||||
`Current model: ${current || '(unknown)'}`,
|
`Current model: \`${current || '(unknown)'}\``,
|
||||||
'',
|
'',
|
||||||
'Recommended models:',
|
'Recommended models:',
|
||||||
];
|
];
|
||||||
for (const m of recommendedModels) {
|
for (const m of recommendedModels) {
|
||||||
const marker = m.handle === current ? ' (current)' : '';
|
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');
|
return lines.join('\n');
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user