Skip to content

Commit dabf8be

Browse files
committed
fix: remove canSendRequest check
1 parent 00fc2e3 commit dabf8be

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/chat/participant.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import { upgradesFindCL } from "./commands/upgradesFindCL";
77
import { getPrivateTools } from "./tools";
88

99
export function registerChatParticipant(
10-
{
11-
extension,
12-
extensionUri,
13-
languageModelAccessInformation,
14-
}: vscode.ExtensionContext,
10+
{ extension, extensionUri }: vscode.ExtensionContext,
1511
electronRoot: vscode.Uri,
1612
) {
1713
const chromiumRoot = vscode.Uri.joinPath(electronRoot, "..");
@@ -22,13 +18,6 @@ export function registerChatParticipant(
2218
stream: vscode.ChatResponseStream,
2319
token: vscode.CancellationToken,
2420
): Promise<vscode.ChatResult> => {
25-
if (!languageModelAccessInformation.canSendRequest(request.model)) {
26-
stream.markdown(
27-
"This extension cannot use the selected model. Please choose a different model.",
28-
);
29-
return {};
30-
}
31-
3221
const tools = getPrivateTools(extension);
3322

3423
if (request.command === "findUpstreamFiles") {

0 commit comments

Comments
 (0)