fix: show autodetected in model titles
This commit is contained in:
parent
cfafdf8832
commit
75186ddadb
2 changed files with 4 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue