diff --git a/vscode/src/chatAgent.ts b/vscode/src/chatAgent.ts index 48be9b0c35..c6d77e3bec 100644 --- a/vscode/src/chatAgent.ts +++ b/vscode/src/chatAgent.ts @@ -86,11 +86,13 @@ export class ChatAgent implements vscode.Disposable { } try { - // Select the LLM model - const [model] = await vscode.lm.selectChatModels({ - vendor: "copilot", - family: "gpt-4o", - }); + const model = request.model; + if (!model) { + stream.markdown( + "No language model selected. Select a model in the chat picker and try again.", + ); + return { metadata: { command: "design" } }; + } stream.progress("Designing the models for the requested concept..."); const chatResponse = await model.sendRequest(messages, {}, token);