Model connections
A model connection tells the AI Assistant which model to use: the provider, the address, the model and the API key. Assistant profiles choose their models from the model connections, and knowledge sources use an embedding model connection to search documents by meaning.
In Casewhere Admin, navigate to AI > Model Connections to manage them.

Create a model connection
- In Model Connections, click Create.
- In General, enter a Name and, optionally, a Description and Tags. Keep Active: assistant profiles can use the connection checked.
- In Provider, choose what the model is for, the provider and the model (see below).
- In API key, type the key of the provider.
- Click Save.
- Click Test connection to check that the model answers.
Provider

| Name | Description |
|---|---|
| Model for | Chat: the assistant's answers, for the models that assistant profiles offer. Embedding: semantic search of knowledge sources, for a model that turns text into vectors (Azure OpenAI or OpenAI, for example text-embedding-3-small). |
| Provider | Azure OpenAI, OpenAI, Claude (Anthropic) or Claude on Microsoft Foundry. |
| Endpoint | The address of the provider. Required for Azure OpenAI (for example https://<resource>.openai.azure.com/) and Claude on Microsoft Foundry (for example https://<resource>.services.ai.azure.com/anthropic/). For OpenAI and Claude, leave it empty, or enter the address of a gateway in front of the provider. It must be an https:// address. |
| Model | The model id, for example claude-opus-5-5, or the name of the deployment in Azure. |
| API | OpenAI and Azure OpenAI only. Responses (recommended) or Chat Completions. Current models take tools on the Responses API only. Choose Chat Completions for an OpenAI-compatible service that has no Responses API. |
| Reasoning effort | How much the model thinks before it answers: None, Low, Medium, High or Extra high. Less is faster and cheaper, more helps with hard questions. Model default leaves it to the model. Not every model takes every value; for example, models that always reason refuse None. |
| Max output tokens | The longest answer the model may write in one call, from 1 to 128,000. Empty: the default of the provider (16,000 for Claude). |
| Timeout (seconds) | How long the AI service waits for one answer of the model, from 5 to 600 seconds. Empty: 120 seconds. |
An embedding model connection has no API, reasoning effort or max output tokens.
Tip
Start with a low reasoning effort. The answers come faster, and most questions about data need little reasoning. Raise it for a profile whose users ask harder questions.
API key
The key is write-only. Casewhere stores it encrypted in the key store of the installation (not in the configuration), and never shows it again: the section says whether a key is stored. To replace the key, type a new one and save. To remove it, check Remove the stored key and save.
A model connection without a key, or one that is not active, is skipped by the assistant profiles that list it.
The key never leaves the environment: it is not in the change logs, packages or the configuration folder, and it is never written to the logs. See AI settings across environments.
Test connection
Test connection sends one short request through the Casewhere AI service, with the saved settings and key. Save the connection first. The result shows how long the model took and what it answered, or the error of the provider. For an embedding model, the test turns a text into a vector and shows its size.

Delete a model connection
Select the connection and click Delete. Its API key is deleted too. Assistant profiles that listed it skip it from then on.
See also
- Assistant profiles: offer users one or more models.
- Knowledge sources: search documents by meaning with an embedding model.