fix: show autodetected in model titles

This commit is contained in:
Dallin Romney 2025-08-25 10:58:37 -07:00
parent cfafdf8832
commit 75186ddadb
2 changed files with 4 additions and 3 deletions

View file

@ -277,11 +277,12 @@ async function intermediateToFinalConfig({
const modelNames = await llm.listModels();
const detectedModels = await Promise.all(
modelNames.map(async (modelName) => {
const autodetectTitle = `${desc.title || desc.model} (auto-detected)`;
return await llmFromDescription(
{
...desc,
model: modelName,
title: modelName,
title: autodetectTitle,
},
ide.readFile.bind(ide),
getUriFromPath,

View file

@ -173,12 +173,12 @@ async function autodetectModels({
if (modelName === AUTODETECT) {
return undefined;
}
const autodetectTitle = `${modelName} (auto-detected)`;
return await modelConfigToBaseLLM({
model: {
...model,
model: modelName,
name: modelName,
name: autodetectTitle,
},
uniqueId,
ideSettings,