Skip to main content

Configure Models

Overview

Model management provides a central place to connect and maintain models available to the current organization, using model providers or company gateways for DecideX conversations and agents. This guide covers model connections, capabilities, connectivity tests, enabling and setting default models, disabling and archiving models, and configuring pricing profiles.

To select an already connected model for an agent, see Model and Reasoning.

Note

Configuring models requires platform administrator or organization administrator permissions. Deployment initializes the platform administrator account. An organization administrator is a member with the Owner role in the current organization. See Manage Members.

Prerequisites

Obtain the following from the model provider or gateway administrator:

  • API protocol, Base URL, model ID, and an API key authorized to call that model. A working request example helps verify the protocol and address.
  • Context window, maximum output tokens, image-input support, and supported reasoning levels. For gateway connections, use the capabilities and limits actually exposed by that gateway.

For a first connection, keep New conversation execution mode at Default. If the current organization uses Pi (trial), prepare both token limits. See New Conversation Execution Mode.

Connect and Test a Model

Sign in as an administrator and confirm the current organization. Click your profile in the lower-left corner and open Settings > Models. On the Models tab, click Add model.

Organization model settings

Enter Basic Information

Enter Basic Information

  • Display name: A name members recognize, such as Production GPT. It must be unique among unarchived models.

  • API protocol: Choose based on the provider's example request path or SDK method:

    For company gateways, follow the gateway's example for that model. Models sharing a Base URL may use different protocols. The protocol cannot be changed after creation; create another entry to change it.

  • Model ID: Use the example request's model value or the gateway's model alias.

  • Pricing profile: Model services provided by Guandata have corresponding pricing profiles by default. For services you configure yourself, create and select a profile. See Configure Pricing Profiles.

Configure the Connection

Configure the Connection|400

  • Base URL: Use the provider or gateway's API base address, not a full request URL ending in /responses, /messages, or /chat/completions. Required for Chat Completions API. Other protocols can use deployment settings or protocol defaults. For a gateway, enter its base address.
  • API key: Use a key authorized to call the model. Chat Completions API requires an explicitly configured key. Other protocols can leave it blank when the deployment environment provides credentials.

Configure Model Options

Use only capabilities supported by the provider or gateway connection.

Configure Model Options|400

Token Limits

  • Context window: The context capacity for one model request, using the provider's published limit.
  • Maximum output: The token limit for reasoning and the answer combined. It must not exceed the context window.

For Chat Completions API or Pi (trial) execution, both must be positive integers and the context window must be at least 3. Other execution modes can leave them blank to use SDK defaults. See New Conversation Execution Mode.

Context Compaction and Reasoning

  • Context compaction appears only for Responses API. Keep local compaction (recommended) unless the connection is confirmed to support remote compaction.
  • Select only the reasoning levels the connection actually supports. The list does not mean that every level is supported by the provider or gateway.
  • Choose a default from the selected levels, or leave it automatic for the execution engine to decide. Deselecting the current default resets it to automatic.

Image Input and Default Model

  • Image input is on by default. Turn it off if the model cannot understand image attachments directly. Enabling it does not give an unsupported model image understanding or generation capabilities.
  • A new model cannot be set as the default during creation. Create it and pass the connectivity test first. Setting it as the current organization's default also enables it. See Default Model.

Create and Test

  1. Create the model. No publication step is required, but it is disabled initially and unavailable to members.

  2. Find it by display name or model ID in the catalog and run its test from the actions column.

    Create and Test

  3. After connectivity succeeds, enable it using its status switch. To make it the current organization's default, use the default-model action in the more menu; this also enables it. The first enabled model becomes the default. Open test details to review results. See Troubleshooting for failures.

  4. Return to the app, start a new conversation, select the enabled model, and send a simple question. Test image understanding or tool use separately if your workflow requires them.

Add Models in a Batch

Models in a batch share the service address, protocol, and form options. Split models that use different protocols into separate batches, even on the same gateway.

  1. Open the batch-add action in the model catalog.

  2. Enter the connection and options as described above. Prepare the model list either way:

    • Fetch from the provider: Enter the Base URL and API key, retrieve the list, then search for and select models. Retrieval uses only the credentials entered for this request.
    • Enter manually: Expand the manual list area and enter one model ID per line. Optionally append an English comma or tab and a display name, for example model-a, Business Analysis. Without a display name, the model ID is used.

    Add Models in a Batch|400

  3. Check the number of models on the add button, then add them. Each entry is saved independently. If some fail, only those entries remain in the form for correction and retry. Test successful entries individually or test the filtered results, then enable those that pass.

Troubleshoot Tests

Open a model's test details and review both results:

Troubleshoot Tests

  • Connectivity (required) checks whether the current execution mode can call the model. Pi also verifies a round of tool calling and its response. This must pass before enabling the model or making it the default.
  • Structured output (optional) checks whether the model can return a specified format. Models without native structured output use compatibility mode. Failure of this check alone does not block enabling the model.

Changing the model ID, Base URL, API key, context window, maximum output, or default reasoning level clears prior test results. Save and test again. Tests are excluded from the organization's usage ledger and budget, but the provider may still charge for them.

SymptomCheck
The list loads, but the model is missing or unauthorizedCheck the model ID or gateway alias and the key's call permissions. Loading the list does not prove every model can run.
Structured output failsCheck the service address, protocol, and connection support for structured output and the default reasoning level.
Missing API key or encryption keySupply model credentials or check deployment credentials for the former. Ask operations to check platform key encryption configuration for the latter.
Tests pass, but members cannot see the modelConfirm it is enabled and unarchived, then check in a new conversation. Existing conversations have additional protocol and image-input restrictions.

Replace credentials: A saved key is not displayed when editing. Blank preserves it; a new value replaces it. Responses API and Messages API can clear the saved key to use deployment credentials when configured. Chat Completions API must retain a valid key; enter the replacement directly.

Defaults, Disabling, and Archiving

New Conversation Execution Mode

New conversation execution mode at the top of the Models page determines how models run. It is separate from the default-model selection. Initially, keep Default. Save changes to apply them only to new conversations in the current organization; existing conversations retain their execution mode.

  • Default: Responses API runs through Codex, Messages API through Claude, and Chat Completions API through Pi.
  • Pi (trial): All new conversations run through Pi, using each model's configured protocol. Models need a usable base address, key, context window, and maximum output. Retest the intended models after switching. Existing conversations retain their original execution mode.

Default Model

The current organization's default model applies to new conversations without another valid model selection. An agent's valid default takes precedence. Changing the default model does not switch existing conversations.

Availability and Existing Conversations

  • Disabling or archiving removes a model from the available catalog. Existing conversations cannot use it for their next turn. A disabled model can be re-enabled; archiving preserves historical references. Select a replacement before taking the default offline. If no usable entry remains, the system does not automatically fall back to an environment-default model.
  • In conversations started manually on web or mobile, wait for active runs and queued messages to finish, then switch to an enabled model using the same protocol. If the original model supports image input, the replacement must also support it. The execution mode stays unchanged. Start a new conversation to change protocols. This switching action does not apply to channel, API, or automated-task conversations.

Configure Pricing Profiles

A pricing profile stores unit prices for input, cached-input, output, and other token usage. DecideX uses these rates and actual token usage to estimate model costs.

  • Model services provided by Guandata: Corresponding pricing profiles are available by default. You do not need to create them separately.
  • Model services you configure yourself: Create a pricing profile using the rates supplied by the model provider or company gateway, then select it in the model configuration.

Pricing profiles support the following:

  • Convert usage to cost: Token counts measure how much content a model processes. Profile rates determine the estimated cost. For example, input and output tokens with different rates are calculated separately and then summed.
  • Review and compare costs: Estimates appear in Token Usage in operations monitoring, helping administrators understand costs by organization, agent, and user.
  • Track allowance consumption: Runs counted toward the organization's monthly AI cost allowance consume that allowance according to their recorded costs. Complete and accurate rates affect cost statistics and allowance management.

A profile does not change actual token counts or the provider's rates or bills.

To create a profile:

  1. Open pricing profiles in model management and add one with a unique profile key and display name. The key cannot be changed after creation.

  2. Enter input, cached-input, and output rates in USD per million tokens. Cache-write pricing is optional.

    Configure Pricing Profiles|400

  3. Save, edit the model, select the profile, and save again. Creating a profile does not automatically bind it to a model.