Admins can always override session limits. If you aren’t an admin, you can only override them when an administrator turns on Allow non-admin overrides in the organization’s token limits settings. Otherwise the token limits control doesn’t appear.
Set limits for a new session
You can only set session limits when you create the session. After the initial prompt, the session keeps the limits it started with.- Open the New Session page.
- In the message composer, select the token limits button (coins icon). Its tooltip reads
Default Token Limitswhen no override is set andCustom Token Limitswhen one is. - In the
Adjust Session Token Limitsdialog, enter aContext Limit, anOutput Limit, or both. Each field’s placeholder shows the default that applies to the selected model. - Select Save.
API
You can set limits when creating a session programmatically by passing the optionallimits object:
context and output accept integers between 1 and 10,000,000. Omit the limits object to use your organization’s defaults. If you aren’t an admin and non-admin overrides are off, a request that sets limits.context returns 403 Forbidden.