diff --git a/core/config/load.ts b/core/config/load.ts index f7bb01834..2e8a812ce 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -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, diff --git a/core/config/yaml/models.ts b/core/config/yaml/models.ts index 102e4152b..c342dc0ef 100644 --- a/core/config/yaml/models.ts +++ b/core/config/yaml/models.ts @@ -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,