Setup, access and model configuration

Set the OpenAI maximum token value

Control the max_tokens value sent with each chat request.

Audience: CRM administrators and authorised staffPermission: Settings: EditModule v1.0.0
Exact navigationAdmin Area → Setup → Settings → AI → OpenAI
Before you begin
  • Use an account with Settings: Edit and confirm the intended record or setting before making a change.
  • Follow the exact route above. If the screen or action is absent, check module activation, ownership and permissions rather than using another person’s account.
  • Use controlled test data for configuration, integration, email, AI, payment, portal or automation changes before production-wide use.

What this guide covers

Control the max_tokens value sent with each chat request. The instructions reflect the supplied module’s registered menus, controller actions, views, settings and code-backed validation flow.

Exact step-by-step process

  1. Open Admin Area → Setup → Settings → AI → OpenAI.
  2. Open the exact setting, option or record named in this guide.
  3. Enter or select the required value; leave unrelated options unchanged.
  4. Save the form and wait for the success response.
  5. Reload the page or open a controlled record to confirm the stored value is being used.

Fields, choices and supported possibilities

Maximum tokensNumeric setting openai_max_token; it is cast to an integer before the API call.
EffectPassed as max_tokens in chat()->create().

Code-backed validations and workflow rules

  • The module does not calculate cost or validate the value against a selected model’s current provider limit.

Expected result and verification

  • The supported set the openai maximum token value flow completes without bypassing permission or validation checks.
  • The resulting record, setting, status, file, delivery event or external response is visible from the relevant workspace.
  • Unexpected validation, provider or linked-record errors are investigated before retrying.

Security, privacy and operational checks

  • Restrict the API key and AI settings to authorised administrators.
  • Do not submit confidential, special-category or unnecessary personal data to the external AI provider.
  • Review generated text before using it in customer, staff, legal, financial or compliance communication.
  • Monitor provider billing and retention independently because this module has no built-in cost dashboard.