Skip to content

Commit 6b92583

Browse files
authored
chat - remove hardcoded quota massaging (microsoft#242214)
1 parent 9ca1204 commit 6b92583

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/workbench/contrib/chat/common/chatQuotasService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ export class ChatQuotasService extends Disposable implements IChatQuotasService
117117
private massageQuotas(quotas: IChatQuotas): IChatQuotas {
118118
return {
119119
...quotas,
120-
chatTotal: typeof quotas.chatTotal === 'number' ? Math.floor(quotas.chatTotal / 10) : undefined,
121-
chatRemaining: typeof quotas.chatRemaining === 'number' ? Math.floor(Math.max(0, quotas.chatRemaining) / 10) : undefined,
120+
chatRemaining: typeof quotas.chatRemaining === 'number' ? Math.max(0, quotas.chatRemaining) : undefined,
122121
completionsRemaining: typeof quotas.completionsRemaining === 'number' ? Math.max(0, quotas.completionsRemaining) : undefined
123122
};
124123
}

0 commit comments

Comments
 (0)