Skip to main content
Your organization’s administrators can set default context and output token limits that apply to every session. When you create a session, you can override those defaults for that session only.
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.
Use an override when one session needs a different budget than usual. For example, a large refactor may need more context, or a quick fix may not need the full default window.

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.
  1. Open the New Session page.
  2. In the message composer, select the token limits button (coins icon). Its tooltip reads Default Token Limits when no override is set and Custom Token Limits when one is.
  3. In the Adjust Session Token Limits dialog, enter a Context Limit, an Output Limit, or both. Each field’s placeholder shows the default that applies to the selected model.
  4. Select Save.
To go back to your organization’s defaults, reopen the dialog and reset the values. If the selected model has a maximum context size configured by your administrators, the dialog shows it and caps your input at that value.
Setting a limit above the model’s actual maximum may result in unexpected behavior.

API

You can set limits when creating a session programmatically by passing the optional limits object:
Both 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.