From 7cdbfee4bdf0de73934f296ba1cc88bf3a5e3845 Mon Sep 17 00:00:00 2001 From: Hashim Khan <64767361+Hashim1999164@users.noreply.github.com> Date: Sat, 26 Sep 2026 04:06:54 +0500 Subject: [PATCH] Use the selected chat model for the Ruby design agent --- vscode/src/chatAgent.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vscode/src/chatAgent.ts b/vscode/src/chatAgent.ts index 48be9b0c35..f1079fd234 100644 --- a/vscode/src/chatAgent.ts +++ b/vscode/src/chatAgent.ts @@ -86,11 +86,11 @@ 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);