-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Closed
Closed
Copy link
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugchatverifiedVerification succeededVerification succeeded
Milestone
Description
Testing #213552
Used Cat sample extension to test this. Please correct me if I misunderstood something
- Added the following code to the end of the
activatemethod (so it runs on activation)
vscode.lm.selectChatModels({ family: 'gpt-3.5-turbo' })!.then(models => {
if (models.length > 0) {
const [first] = models;
const response = context.languageModelAccessInformation.canSendRequest(first)
console.log('Can send request:', response);
} else {
console.log('No chat models available');
}
});
-
Run extension
- Log:
Can send request: undefined=> This is expected, consent has not been given yet
- Log:
-
Send a chat message using the
@catparticipant (@cat Hello World)- Consent is requested => Accept
-
Restart the extension
- 🐍 Log:
Can send request: undefined
- 🐍 Log:
Consent has been given by now, so the expected response would be true?
When sending another @cat Hello World message, consent is not requested again.
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugchatverifiedVerification succeededVerification succeeded