mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
Check language model session target (#298862)
This commit is contained in:
@@ -364,7 +364,7 @@ export class ExtHostLanguageModels implements ExtHostLanguageModelsShape {
|
||||
}
|
||||
|
||||
for (const [modelIdentifier, modelData] of this._localModels) {
|
||||
if (modelData.metadata.isDefaultForLocation[ChatAgentLocation.Chat]) {
|
||||
if (modelData.metadata.isDefaultForLocation[ChatAgentLocation.Chat] && !modelData.metadata.targetChatSessionType) {
|
||||
defaultModelId = modelIdentifier;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user