mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 01:58:01 +01:00
fix skipping models from other vendors (#288713)
This commit is contained in:
committed by
GitHub
parent
434f92ed0a
commit
df2c07422b
@@ -553,8 +553,14 @@ export class LanguageModelsService implements ILanguageModelsService {
|
||||
allModels.push(...models);
|
||||
const modelIdentifiers = [];
|
||||
for (const m of models) {
|
||||
// Special case for copilot models - they are all user selectable unless marked otherwise
|
||||
if (vendorId === 'copilot' && (m.metadata.isUserSelectable || this._modelPickerUserPreferences[m.identifier] === true)) {
|
||||
if (vendorId === 'copilot') {
|
||||
// Special case for copilot models - they are all user selectable unless marked otherwise
|
||||
if (m.metadata.isUserSelectable || this._modelPickerUserPreferences[m.identifier] === true) {
|
||||
modelIdentifiers.push(m.identifier);
|
||||
} else {
|
||||
this._logService.trace(`[LM] Skipping model ${m.identifier} from model picker as it is not user selectable.`);
|
||||
}
|
||||
} else {
|
||||
modelIdentifiers.push(m.identifier);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user