Skip to main content
Version: v1 (Current)

Configure Platform AI Models

Platform AI models define provider/driver request and response configuration; project AI interfaces select and configure those models for an experience. Developer planning and coding agents are separate team/global configurations.

Model configuration​

System AI models are managed in the system-admin AI Models area (/system/ai-models on the configured system domain). The route group requires system-host super-admin, two-factor, authenticated/verified account, current-team context and password confirmation; project interface access alone does not grant system model administration. The controller registers resource authorization using system_ai_models, while the resource route uses ai_model. Registration therefore does not by itself certify bound-resource policy isolation; test deployed refusal and resource ownership. The enrichment action separately authorizes model update. Request classes returning authorize: true do not establish a grant or substitute for those checks.

  1. Create a model with a clear name and provider. Creation derives its slug from the name and validates slug uniqueness. Retain the saved slug: project AI interfaces reference the system model by that slug, while driver endpoint/model identifiers may be different values. Dashboard update rules do not expose slug edits, so changing the name through this editor does not regenerate the slug. A separate maintenance change to a slug needs explicit dependency migration; do not assume interfaces follow it automatically.
  2. Open the model detail page. Review description, capabilities, system tags, provider, Supports Live API, System Model, driver configuration and subscription mask as applicable. Detail autosave is disabled; explicitly save and reload to verify changes.
  3. Have the platform maintainer configure credentials using the provider-specific server keys listed in the driver guide’s transport table, and use that guide for endpoint construction, request templates, response mapping and callbacks. Do not place credentials in the driver JSON or browser app.
  4. Test the selected transport and interface with controlled content before exposing it to users. Capability labels and Supports Live API are configuration metadata; accepting or storing them does not prove a working live provider, permissions or deployment.

The current dashboard provider map offers vertex, replicate and gxp-diffusion. SystemAiModelService also has a rembg transport branch; that does not make it a provider choice in this editor. Create/update validation accepts a provider string without enforcing the transport enum, so an accepted save can still fail as unsupported when used by that service.

Find the intended catalog model​

The list shows ID, Name, Description, Activity Status, Last Used, Interfaces, Provider, System Model and Updated At. Default ordering is Name ascending with 25 rows; requests bound page size to 1–100. Search matches model name, not slug, description, provider or every visible field. System Only is an inline filter; inspect returned IDs/provider/slug and active filter state rather than assuming an absent model was deleted. The index validates filters as an array, so integrations must use the actual supported request representation rather than an arbitrary JSON string.

Interface counts exclude interfaces whose project is deleted. The activity sort uses system-model OR recently-used status; a system model grouping with active entries does not prove a recent provider call. Pagination/counts and activity bookkeeping are not a global dependency inventory, provider health check or rollout acceptance.

The detail has Settings and Interfaces. Settings has explicit save plus a separate Enrich action; inspect their returned results independently. Interfaces resolves dependencies by model slug, omits deleted projects, supports interface/project-name search and displays project/team and message counts. Messages count stored related records, not successful answers or current live sessions. Open an interface through its returned owning team/project/ID and verify that context before changing it. An empty dependency table does not prove there are no other integrations, stored references or in-flight work using the driver.

Driver validation and enrichment​

Model create rules validate a supplied driver as JSON, whereas update rules validate it as an array/object. Do not reuse the same raw request representation blindly across those operations. These shape checks do not validate endpoint reachability or the internal driver schema. Verify the saved model's decoded driver and the actual editor/request flow before automating creation.

New models without a driver queue an enrichment job. Enrich with AI also queues a pass and asks the administrator to refresh later. A queued acknowledgement is not a completed enrichment or connection test. Inspect the resulting configuration before using it, particularly generated connection details; keep a known configuration for recovery. Enrichment's generated content and provider calls need their own acceptance checks.

Before deleting a model or making a breaking driver change, inspect its Interfaces tab. The model relation matches interfaces by slug. The inspected delete controller deletes the model without an explicit in-use refusal; do not assume the dashboard protects dependent experiences. Move or verify dependent interfaces before retiring a model.

What enrichment changes​

Standard enrichment rewrites description and capabilities and adds normalized keyword tags without detaching existing tags. When the driver is null or an empty array and the trimmed description begins with a non-empty create: brief (case-insensitive), enrichment instead attempts to draft and store a connection driver. Existing populated drivers do not enter that create mode. Generated driver validation checks for decoded array content with a non-empty string baseUrl; it is not a complete provider/schema/authentication test.

If enrichment fails for a model that began with an empty driver, the service records enrichment_error, failed_at and any brief in the driver field and returns a failure result. A completed queue handler therefore does not by itself mean a usable driver exists. Failures for a model that began with a populated driver are rethrown. Inspect the resulting fields and restore a verified configuration before retrying; an error object is not a working connection driver. To request a new generated draft after an empty-driver failure, first retain the failure details, then use the authorized model-update workflow to replace the failed driver object with an empty array ([]) and restore a non-empty create: description. Update validation accepts an empty array; it does not accept a supplied null driver as an array. Save and verify the cleared driver before selecting Enrich again. Simply clicking Enrich on the populated error object does not satisfy the empty-driver create-mode precondition. Review the new draft before enabling it.

Activity and model availability​

Active is usage bookkeeping, not a connectivity or quality check. The refresh service marks system models active, while other models use recorded message/media connection timestamps and a configurable inactivity threshold (15 days by default). Message activity updates are queued/debounced, so the display can lag. Check activity_refreshed_at and actual usage before treating an inactive label as a failure; do not test provider health by changing that label.

The inspected project model-selection queries include records matching the current dashboard mask plus records whose mask is null. A null current mask selects the unscoped records. Compatible-model search can additionally filter by the current model's system tags for a non-super-admin; when no such tags exist, that tag restriction is absent. These are selection-query behaviors, not proof that every direct model-use path enforces the same availability or authorization rules. Verify the project interface's selection and actual execution permissions separately.

Response and asynchronous behavior​

Test extraction of text, errors, usage and identifiers for the chosen provider. A synchronous result and an asynchronous callback have different completion paths. The service's support for a webhook format does not mean every provider model sends callbacks in that format.

Project integration​

Create a project AI interface, select the available model/driver and set the instructions/options intended for that project. Bind the attendee app to that interface and declare its supported session/message actions. Test same-project ownership, inaccessible prior sessions, provider errors and usage limits. See Communication and AI.

Moderation and validation​

Moderation is a separate pipeline under app/Services/Moderators/, AiModeratable and ModerateEntityJob. Verify which entities/actions use it and how allowed/rejected/pending outcomes affect publication. A model producing text does not prove moderation succeeded or that the output can be exposed to every audience.

Before rollout, run controlled conversations against the actual provider, inspect usage/error state and verify callbacks/retries where used. For failures, inspect driver mapping and the actual provider response before widening permissions or starting a duplicate session.

Verify catalog changes and recover failures​

Retain model ID/slug/provider, prior driver/description/capabilities/tags and affected project-interface identities before an authorized shared change. Reload Settings after saving and compare the actual decoded driver and selected provider. Enrichment may rewrite fields asynchronously; inspect its final saved result/error separately from a queued acknowledgment and the editor's local values. A populated driver, live-capability flag or Active badge is not a provider connection test.

For missing models/interfaces, check name search, system filter, pagination, exact slug and deleted-project exclusion before creating a duplicate. For a rejected update or filter request, inspect returned validation and the create/update/filters representation; do not change a slug or widen access to bypass it. For an unsupported provider or bad generated driver, follow the verified driver/enrichment recovery guidance above and preserve the failure/configuration before another attempt.

Before retirement or breaking changes, reconcile the intended interfaces and other consumers with the platform owner. The reviewed controller has no explicit in-use deletion refusal. Do not use deletion/recreation as a configuration reset or assume a missing list entry revoked tokens, canceled provider work or migrated dependencies. Actual provider, activity, ordinary-account and project-interface execution acceptance remain separate. No shared model, enrichment job or provider call was executed for this catalog supplement.

Verification scope​

The documented dashboard setup, model validation, enrichment modes/recovery, activity and selection-query contracts completed source and fresh-reader review on 2026-10-15. Offline checks cover model validation (one case/seven assertions) and the native enrichment suite with mocked Gemini (11/47). They do not prove deployed editor behavior, generated-driver correctness, live provider/research calls, activity refresh on PostgreSQL, subscription enforcement or full project-interface authorization. Complete those integration checks before rollout.

System catalog index/detail/navigation and authorization-registration precision was supplemented on 2026-10-15 at platform 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093. Existing driver/enrichment tests retain their original scope and were not rerun or promoted into catalog/deployment acceptance.