मुख्य सामग्री पर जाएं

LLM Configuration Templates

LLM templates let you configure a gateway or self-hosted model connection once and reuse it when adding models. The template author chooses which settings stay fixed and which inputs each new connection needs, such as model name or API key. Templates work with every provider in the model editor, including Custom API.

Where to manage templates​

LocationWho can manage templatesAvailable templates when adding models
Super Admin → System → TemplatesFull super adminsApp-wide
My Account → Team → Models & TemplatesDirect owners/admins of the selected teamApp-wide and that team
Project Settings → Models & TemplatesProject owners/adminsApp-wide, the project's owning team, and that project

Team administration inherited from a parent team, or super-admin status alone, does not grant team model/template management. Project members who already have permission to add project models can use available templates; creating or changing project templates requires owner/admin access. App-wide and team templates appear read-only inside projects.

Create a template​

  1. Open Templates in the appropriate settings page and choose Create template.
  2. Give it a name and description, then use the existing model configuration form to choose its provider and connection settings.
  3. Mark reusable settings Fixed. Mark inputs that vary between models Variable.
  4. Give variables clear labels, types, required/optional settings, and any defaults or allowed values.
  5. Review the preview of the form that model creators will see, then save the template.

The provider remains fixed. Duplicate a template to choose another provider and configure that provider's fields. Publishing a template validates its definition without calling the model endpoint. Required inputs must have usable values, and the connection must pass validation when you create or update a model from the template.

For Custom API connections, variables can target individual headers, nested JSON request fields, OAuth credentials, dynamic token requests, and gateway settings. One variable can fill multiple places, such as the model name and a request-body field. Whole objects and arrays can also be variable inputs. Number and boolean inputs retain their types.

Binding typed variables to nested connection settings

Derive from an existing model​

Choose Save as template on a model you manage. Its reusable configuration is copied into the template editor. The source model remains unchanged, including its identity and any agents using it.

Credentials are never displayed during derivation. Source credentials are excluded by default. Select Reuse the source credentials for models created from this template to make an eligible existing credential a protected shared credential. Alternatively, configure replacement credentials or make the credential field Variable so each model supplies its own. Copying only a model-name variable without any credential source does not produce a usable authenticated connection; the editor warns when an API-key provider has no configured key or API-key input. Creating an independent template from a model that already uses another template requires replacement credentials. A duplicate that retains shared credentials must keep their original provider and routing restrictions.

Shared credentials and overrides​

A template can hold a protected credential shared by its models. Model creators see Configured by template, without seeing its contents. A variable credential can permit a model-specific override; otherwise the template value remains fixed.

  • Leaving a configured credential unchanged preserves it.
  • Replacing it supplies a new value.
  • Choosing Use template value removes a permitted local override.
  • Clearing a required credential without a usable template value prevents saving.

Before publishing shared credentials, check the scope shown in the editor. An app-wide template makes those credentials usable by permitted model creators throughout the app. A team template makes them usable within that team and its projects.

Fixed connection URLs are trusted automatically. For a gateway template where only the model name or credentials change, no destination rules are needed.

If a template shares a hidden credential and lets model creators change a connection URL, open Advanced: allowed credential destinations and approve which servers can receive that credential. Choose the connection setting by name, such as Model API URL or OAuth token URL. Configure the actual URL under Configure connection.

Allowed server URLs contain the scheme, host and optional port, such as https://gateway.company.com:8443, without a request path. Allowed full URLs can restrict the configuration setting to specific complete HTTP(S) URLs; an allowed server also permits other configured URLs on that server. Outgoing requests and redirects are checked by server, including its scheme and port. Private on-premises servers are supported. Remove unused empty rules before publishing. AWS regions using shared credentials must remain fixed.

Add a model from a template​

  1. Open Add model from System, team/project settings, or the existing agent model dialog.
  2. Choose Use template, select a template, and enter its variable inputs.
  3. Expand the fixed-settings summary if needed. Shared credential contents remain hidden.
  4. Test the connection and create the model. Connection validation must succeed before it becomes usable.
  5. Select the resulting model on an agent as usual.

Creating a model with variable inputs and an undisclosed configured credential

App-wide model display names, billing settings, default-role assignments, visibility and deprecation settings are managed separately. A connection template does not silently assign these administrative settings.

Revisions and updates​

Every template-based model records the revision it uses. Editing and saving a template publishes a new revision; existing models continue using their saved revision.

When Update available appears on a model, choose Review update to inspect changed fixed settings and variables. Compatible permitted values are retained. Supply newly required inputs and review removed inputs before applying the update. Credential changes are shown without revealing values. The previous model remains intact if validation fails.

Use the model's template controls to edit permitted variables. Fixed values cannot be changed through the ordinary model form or an agent's saved connection settings.

Archive, disable, switch, or detach​

ActionEffect
ArchiveStops new models and upgrades into that template. Existing models keep running and can edit permitted variables.
DisableBlocks new models, connection tests, upgrades into it, and subsequent requests from linked models. Requests already sent to a provider cannot be recalled.
Restore / EnableReturns the template to permitted use.
Switch templateShows a reviewed replacement configuration, validates it, then changes the model while preserving its model ID. Supply independent credential overrides for the new template.
DetachConverts the model into an independent connection after you supply and validate independent credentials. Protected shared credentials are not copied out.
DeleteAllowed only when no model references the template's revisions.

Authorized administrators can still manage, switch, or detach models while their original template is disabled. Changing a team's or project's ownership can make a previously available template inaccessible; those models require explicit reconfiguration and do not silently switch to another model or key.

Clone and import/export​

An authorized same-app project clone can reuse accessible app-wide/team templates and copy eligible project templates into the new project. Models keep valid links, and eligible private values are securely rebound to the new scope.

Portable project and workflow exports contain sanitized template definitions and references. They omit shared credentials, model-specific credentials, and internal encrypted values.

After import, open Project Settings → Models & Templates and complete any required model mappings. Choose an accessible template or create a local template from the imported definition, provide missing credentials, and validate it. Agents retain their imported model references, but affected models cannot run until mapping is complete. Mapping to an existing authorized template can use that template's shared credentials under its original restrictions; an independent local template needs replacement credentials.

Troubleshooting​

  • Template unavailable: ask its owning administrator to restore/enable it, or review a switch to an accessible template.
  • Configuration changed: reload the form and review the latest model/template state before saving.
  • Required variable missing: supply the input shown in the form; a blank credential does not reveal or replace an existing shared credential.
  • Destination not permitted: keep the configured endpoint or ask the template author to approve the required destination.
  • Import requires mapping: complete the model mapping in Project Settings. The app deliberately avoids substituting a default model.
  • Connection test failed: the dialog shows the specific configuration or provider reason. Expand Connection test details to see the provider status, error code and affected parameter when available, then use Copy error details to share the diagnostic. Its Reference matches the server log entry. Credentials and sensitive connection values are removed from both. If no API key is configured, edit the template to share a credential or add a credential variable before trying again.