Check language model session target (#298862)

This commit is contained in:
Don Jayamanne
2026-03-03 16:19:05 +11:00
committed by GitHub
parent 17e938946e
commit 397d3e1b17

View File

@@ -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;
}