Skip to content

Commit 4774778

Browse files
authored
Enable all available models for Free users (#68)
* Handle snippy issue * Free SKU users can use all available models
1 parent af84c80 commit 4774778

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/platform/authentication/vscode-node/copilotTokenManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export class VSCodeCopilotTokenManager extends BaseCopilotTokenManager {
8989
case TokenErrorNotificationId.ServerError:
9090
case TokenErrorNotificationId.FeatureFlagBlocked:
9191
case TokenErrorNotificationId.SpammyUser:
92+
case TokenErrorNotificationId.SnippyNotConfigured:
9293
throw new ContactSupportError(message);
9394
}
9495
}

src/platform/chat/common/chatQuotaServiceImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class ChatQuotaService extends Disposable implements IChatQuotaService {
3838
}
3939

4040
processQuotaHeaders(headers: IHeaders): void {
41-
const quotaHeader = headers.get('x-quota-snapshot-premium_models') || headers.get('x-quota-snapshot-premium_interactions');
41+
const quotaHeader = this._authService.copilotToken?.isFreeUser ? headers.get('x-quota-snapshot-chat') : headers.get('x-quota-snapshot-premium_models') || headers.get('x-quota-snapshot-premium_interactions');
4242
if (!quotaHeader) {
4343
return;
4444
}

0 commit comments

Comments
 (0)