Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/vs/workbench/contrib/chat/browser/chat.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,10 @@ class ChatAgentSettingContribution extends Disposable implements IWorkbenchContr
const treatmentId = this.entitlementService.entitlement === ChatEntitlement.Free ?
'chatAgentMaxRequestsFree' :
'chatAgentMaxRequestsPro';
this.experimentService.getTreatment<number>(treatmentId).then(value => {
Promise.all([
this.experimentService.getTreatment<number>(treatmentId),
this.experimentService.getTreatment<number>('chatAgentMaxRequestsLimit')
]).then(([value, maxLimit]) => {
const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
const node: IConfigurationNode = {
id: 'chatSidebar',
Expand All @@ -972,6 +975,7 @@ class ChatAgentSettingContribution extends Disposable implements IWorkbenchContr
type: 'number',
markdownDescription: nls.localize('chat.agent.maxRequests', "The maximum number of requests to allow per-turn when using an agent. When the limit is reached, will ask to confirm to continue."),
default: defaultValue,
maximum: maxLimit,
},
}
};
Expand Down
Loading