Models#
The Models screen is designed to manage Models and Model Instances available in Sherpa AI Server.

Models screen, Capabilities and Default for columns. English interface.
Users can choose between a local Model or a cloud-based one, provided they have the necessary tokens for access. Integration of a Model hosted on third-party servers within the local network is also possible (but not on the same server where Sherpa AI Server is located).
| № | Interface Element | Description |
|---|---|---|
| 1. | “Models” block | The upper area of the screen where the list of Models registered in the system is displayed. |
| 1.1. | “Create” button | Opens the form to create a new Model. |
| 1.2. | “Refresh” button | Refreshes the list of Models. |
| 1.3. | “Delete Selected” button | Allows you to delete selected Models. |
| 1.4. | “Export to CSV” button | Exports the list of Models to a CSV file. |
| 1.5. | “Export to XLSX” button | Exports the list of Models to an XLSX file. |
| 1.6. | Model selection checkbox ![]() | Allows you to select one or more Models for performing bulk actions. |
| 1.7. | “Name” column | Displays the name of the Model. |
| 1.8. | “Description” column | Displays the description of the Model, if provided. |
| 1.9. | column "Capabilities" | Shows enabled model capabilities. Several capabilities can be enabled together. |
| 1.10. | column "Default for" | Shows the operations for which the model is the account default. Each operation has its own default assignment. |
| 1.11. | “Response Generation Parameter” column | The selected profile of response generation settings.
|
| 1.12. | “Access Folder” column | Displays the Access Folder to which the Model belongs. |
| 1.13. | “Created” column | Displays the date and time the Model was created. |
| 1.14. | “Modified” column | Displays the date and time the Model was last modified. |
| 1.15. | Edit button ![]() | Allows you to open the selected Model to change its parameters. |
| 1.16. | Delete button ![]() | Allows you to delete a specific Model. |
| 2. | “Model Instances” block | The lower area of the screen where instances of the selected Model are displayed. |
| 2.1. | Instance selection checkbox ![]() | Allows you to select one or more Model Instances for performing bulk actions. |
| 2.1. | “Create” button | Opens the form to create a new Model Instance. |
| 2.2. | “Refresh” button | Refreshes the list of Model Instances. |
| 2.3. | “Delete Selected” button | Allows you to delete selected Model Instances.
|
| 2.3. | “Export to CSV” button | Exports the list of Model Instances to a CSV file. The button is inactive if no instances are selected. |
| 2.4. | “Export to XLSX” button | Exports the list of Model Instances to an XLSX file. The button is inactive if no instances are selected. |
| 2.5. | “Name” column | Displays the name of the Model Instance. |
| 2.6. | “Type” column | Displays the type of Model Instance, for example local. |
| 2.7. | “Location” column | Displays the address or location of the Model Instance, for example aiserver-llm-server:8000. |
| 2.8. | “Created” column | Displays the date and time the Model Instance was created. |
| 2.10. | “Modified” column | Displays the date and time the Model Instance was last modified. |
| 2.12. | Edit button ![]() | Allows you to open the selected Model Instance to change its parameters. |
| 2.13. | Delete button ![]() | Allows you to delete a specific Model Instance. |
| 3. | ![]() | Allows you to specify how many records will be displayed in the table on one page. |
| 4. | ![]() | Shows the range of records displayed on the current page and the total number of records in the table. |
| 5. | ![]() | Allows you to navigate between pages of the table:
|
Model capabilities and defaults#
Capabilities define the operations and input data supported by a model. Reading and updating models requires the corresponding permissions. Open a model using the edit button in its row.
The "Capabilities" section includes:
Chat— conversations and Assistants.Image understanding— image descriptions and answers to questions about images.Document OCR— extracting text and simple structure from PDF page images, independently of general image understanding.Video understanding— analyzing video content supplied through the chat API.Audio understanding— analyzing audio content supplied through the chat API.Text completion— continuing a text prompt through the API.Indexing— producing vectors for indexing and compatible searches.Reranker— reranking authorized search results. Search retains its original results when no default reranker is assigned or it is unavailable.Transcription— converting audio to text.Audio translation— translating uploaded audio through the API. The selected model protocol determines the target language.Classification— estimating text classes through the API.Similarity scoring— scoring pairs of texts through the API.Pooling and features— obtaining text representations through the pooling API.Tokenization— converting text to tokens and tokens to text through the API.
The checkbox beside a capability enables its support. Clearing it removes the model from the corresponding selection. Clear its default assignment before disabling a capability.
The "Default" checkbox is available for Chat, Image understanding, Document OCR, Indexing, Reranker and Transcription. It assigns the default model for that operation within the account. The previous assignment for that operation is removed; other assignments remain unchanged. Other capabilities show Select in chat or request: select the model in the particular chat or specify it explicitly in the API request.
Click "OK" to save. "Cancel" closes the dialog without saving form changes. Document settings display the current OCR and indexing models as read-only values. Existing chat and Assistant assignments remain in effect.
Upgrading preserves existing model and instance settings. The former Image understanding assignment remains independent. If PDF settings selected a different valid OCR model, that model becomes the Document OCR default. An invalid reference or a model outside the account is not replaced by another model. Video and new API operations are not enabled automatically. Verify them on the selected instance before enabling them. A capability checkbox does not install a new model on the server.
Images and videos use the chat API with image_url and video_url content parts. No separate video endpoint is required. This setting does not add video file upload to the Chat interface. Additional API operations return ordinary JSON without streaming.

Edit Model dialog, Capabilities section. English interface.
Sherpa AI Server uses only saved models in the current account for these operations. An explicit model selection takes priority. When no model is specified, an available default assignment is used. New API operations without a default assignment require an explicit model selection. An unknown name or a missing default returns 404 model_not_found. A selected model without an available active instance returns 503 model_unavailable. There is no automatic switch to another model or to .env settings. Check the model card, default assignment and instance connection.
"Detect capabilities" button#
The button checks supported operations using the saved configuration of an active model instance. Save a new model and add an active instance first.
Metadata for the selected model is checked by default. "Allow small diagnostic requests (may consume provider tokens)" additionally permits bounded checks of individual operations. Clearing the checkbox prevents those requests.
"Confirmed" enables a capability in the form. "Not supported" clears a capability that has no default assignment. "Unknown — manual setting retained" keeps the manual selection. Service outages, timeouts and missing permissions do not prove that a capability is unsupported. Detection does not change default assignments. Review the proposed settings and click "OK" to apply them.
Assigning the indexing model#
The confirmed transition prevents vectors from different models or dimensions from being mixed.
If an account used the installation’s configured indexing server before the update, Models shows a default model for that connection. Existing vectors, dimensions, and text splitting settings are preserved. Any previously assigned default model is kept.
Save the Indexing capability, configure an active instance and reopen the model. The transition also requires Read and Update permissions for API and Read permission for Documents. Changing Default for Indexing opens the Default indexing model dialog.
Enter an integer from 32 to 2000 in Embedding vector dimension*, matching the selected model's response. Click "Confirm switch and reindexing" to check the configuration and start the transition. Changing the model or dimension clears existing indexes and queues documents for reindexing. Another transition is unavailable while one is pending. If a check fails, verify the connection, dimension and index status before retrying.

Default indexing model dialog, dimension 384. English interface.
A confirmed switch or removal of the default assignment takes effect immediately. "Cancel" in the main model card does not undo this transition.
To remove the default assignment, clear Default in the Indexing row and click "Clear default assignment" in the Default indexing model dialog. Files, text chunks, vectors and the current dimension are retained. Reindexing does not start. Indexing and vector search remain unavailable until a model is assigned. No built-in model is selected automatically.

Default indexing model dialog: clearing the default assignment. English interface.
Selecting a Model on Other Screens of Sherpa AI Server#
Chat#
The default chat model is assigned in Models. A different model can be selected before the first message on the Chat screen. An explicit chat or Assistant model takes priority over the default assignment.

Chat screen, model selected before the first message. English interface.
Assistants#
The "Model" field in the "Edit Assistant" window allows you to select the Model that will be used by the Assistant to generate responses to the User. This field is mandatory and is applied when the "Response Source to User's Question" block has the option "Model Responds" selected.

Create Model#
The "Create Model" popup opens after clicking the "Create" button above the "Models" table and is intended for adding a new Model to Sherpa AI Server.
| No. | Interface Element | Description |
| 1. | section "Main" | Contains the basic parameters of the created Model. |
| 1.2. | field "Name" | Required field for entering the name of the Model. |
| 1.3. | field "Description" | Intended for entering a brief description of the Model. |
| 1.4. | "Capabilities" section | Contains separate Supported and Default checkboxes for each operation. Capabilities do not exclude each other. |
| 1.5. | field "Context Length (tokens)" | Allows specifying the maximum length of the Model's context in tokens. If the field is left empty, the global setting LLM_MAX_MODEL_LEN will be used. |
| 1.6. | field "Object Folders" | Allows selecting Object Folders for which the Model will be available. |
| 1.7. | "Default" checkboxes | Assign the model as the default for supported operations. Indexing requires saving the capability first, then confirming the dimension check and reindexing. |
| 1.8. | "Also perform diarization" checkbox ![]() | Appears below the "Transcription" row when its support is enabled. Adds speaker separation when transcribing with this model. Clearing it leaves transcription only. The setting does not depend on the model's default assignment. |
| 2. | section "Generation Parameters (sampling)" | Contains settings for generating responses by the Model. These parameters affect the style, variability, length, and stability of the responses. |
| 2.1. | button "Advanced Generation Parameters" | Expands or hides detailed generation settings. |
| 2.2. | field "Preset" | Allows selecting a ready-made set of generation parameters.
|
| 2.3. | field "Top-p (nucleus)" | Limits the selection of tokens to the most probable options until their cumulative probability reaches the specified threshold. A lower value makes the responses stricter, while a higher value makes them more free. |
| 2.4. | field "Top-k" | Limits the selection of the next token to a specified number of the most probable tokens. A value of 0 disables this limitation. |
| 2.5. | field "Min-p" | Cuts off tokens with low probability relative to the best token. A value of 0 disables the parameter. |
| 2.6. | field "Presence penalty" | Adds a penalty for already encountered tokens and reduces the likelihood of repeating themes or phrases. |
| 2.7. | field "Repetition penalty" | Additionally penalizes the repetition of already generated text. A value of 1.0 means no penalty enhancement; values above 1 further reduce repetitions. |
| 2.8. | field "Max response tokens" | Allows specifying the maximum length of a single response from the Model. If the field is left empty, the value from the global system settings is used. |
| 3. | section "Advanced Mode" | Contains additional model settings intended for more precise configuration of the chat template and data transmission parameters to the Model. |
| 3.1. | button "JSON Template Parameters" | Expands or hides the block for configuring chat template parameters in JSON format. |
| 3.2. | block "Chat Template Parameters (JSON)" | Contains a field for entering additional chat template parameters in JSON format. |
| 3.3. | field "Chat template kwargs (JSON)" | Intended for entering a JSON object of additional arguments chat_template_kwargs, which are used when forming requests to the Model.A hint below the field explains that the entered JSON object is passed to chat/completions as chat_template_kwargs, is combined with the setting LLM_CHAT_TEMPLATE_KWARGS from .env, and the keys should not overlap. |
| 4. | button "Cancel" | Closes the window without creating the Model and without saving the entered data. |
| 5. | button "OK" | Creates the Model with the specified parameters.
|
Chat Settings in a Model#
The Role needs "Models: Create" or "Models: Update" permission. On the Models screen, create a Model with the "Chat" capability or open it for editing. The "Chat settings" section contains:
- "System message" — instructions for the Model, up to 2000 characters. This field can be empty.
- "Stream responses" — shows responses progressively in supported Chat modes.
- "Temperature" — controls response variability. The allowed range is 0 to 2.
Click "OK" to save. For example, enter "Reply briefly", set temperature to 0.3, and enable streaming. A new ordinary Chat using this Model saves all three settings. Later Model edits do not change existing Chats. Selecting another Model in a Chat replaces its saved settings. In Assistant Chats, explicitly set system messages and temperatures from the Assistant take priority. An unset Assistant value falls back to the Model value. API requests that set a Chat’s prompt, temperature, or use_stream directly return 422. Update the Model instead.
When upgrading Sherpa AI Server, existing Model temperatures are preserved. The former account-wide Chat temperature does not overwrite them.
Duplicate a Model#
The Role needs "Models: Read" and "Models: Create" permissions. On the Models screen, click "Duplicate model" in the source Model's row. The new Model copies all settings and every non-deleted Model Instance, including inactive ones. The Model and Instances receive new GUIDs. The Model name ends with "копия". Default assignments are cleared. The source Model remains unchanged.
Apply Settings to Linked Chats#
The Role needs "Models: Update" permission. Save the Model settings first, then click "Apply to linked chats" in its row. The confirmation dialog shows the number of linked ordinary Chats. Confirming updates their saved system message, temperature, and streaming setting.
For example, change a Model's temperature from 0.3 to 0.5 and confirm the update for three linked ordinary Chats. Their next responses use 0.5. Message history stays intact. Assistant Chats and Chats linked to other Models are unchanged. Without this action, existing Chats retain their saved settings. If a linked ordinary Chat is generating a response, the update does not run. Try again after the response finishes.
Diarization when transcribing with a model#
Diarization distinguishes turns by different speakers in an audio recording. In the model dialog, the "Also perform diarization" checkbox appears directly below the "Transcription" row when its support is enabled. The setting is also available for a model that is not assigned as the default.
Permission to create or update a model is required to enable diarization. In the model dialog:
- In "Capabilities", check "Transcription".
- Check "Also perform diarization" below that row.
- Click "OK".
Example: To transcribe a conversation between two speakers, check "Transcription" and "Also perform diarization". Leave other capabilities off and the "Default" checkbox for transcription unchecked. When this model is used, transcription includes speaker separation.

Edit Model dialog: transcription and diarization enabled. English interface.
When checked, this option adds diarization when transcribing with this model: the result contains text and speaker labels. When unchecked, transcription runs without speaker separation. Each model saves its own setting. Assigning the model as the default for transcription or clearing that assignment does not reset the selected value.

Edit Model dialog: transcription only. English interface.
Clearing the "Transcription" checkbox hides the nested checkbox and turns diarization off when the model is saved.
The Whisper service setup is described in Speech recognition with speakers (WhisperX).
Create Model Instance#
The "Create Instance" popup is intended for adding a new Model Instance to Sherpa AI Server.

| No. | Interface Element | Description |
| 1. | field "Name" | Required field for entering the name of the created instance. |
| 2. | field "Description" | Intended for entering a brief description of the model instance. |
| 3. | switch "Local / Cloud" | Allows you to choose the type of deployment for the model instance: local or cloud. |
| 4. | field "Path to Model" | Intended for specifying the path to the model, which will be passed in OpenAI protocol requests in the model parameter. The hint provides an example path: /model-store/meta-llama/Meta-Llama-3-8B-Instruct. |
| 5. | field "Timeout" | Required field for specifying the connection timeout in seconds. |
| 6. | section "Connection" | Contains connection parameters for the model instance. |
| 6.1. | field "Connection Type" | Required dropdown field for selecting the connection method. |
| 6.2. | field "Host" | Required field for specifying the address of the local server where the model instance is available. |
| 6.3. | field "Port" | Required field for specifying the port on which the local server of the model instance is available. |
| 6.4. | field "Schema" | Dropdown field for selecting the connection schema to the server. |
| 6.5. | field "Subpath" | Intended for specifying the prefix path to the OpenAI protocol. The hint explains that, for example, for the route |
| 6.6. | field "Protocol" | Required dropdown field for selecting the protocol for interacting with the model instance. |
| 7. | section "Authorization" | Contains authorization parameters when connecting to the model instance. |
| 7.1. | field "Authorization Type" | Required dropdown field for selecting the authorization method. |
| 7.2. | button "Check Connection" | Allows you to check the availability of the model instance and the correctness of the specified connection parameters. |
| 8. | button "Cancel" | Closes the window without creating an instance and without saving the entered data. |
| 9. | button "OK" | Creates a model instance with the specified parameters. The button is inactive if the required fields are not fully filled. |
Edit Model#
To edit a model, click the edit button in its row. The dialog opens with the saved settings. Operation settings are described in Model capabilities and defaults.
Edit Model Instance#
To view/edit the properties of the Model Instance, you need to select the desired instance from the list and click the button
. After that, a form with Model Instance settings will open, where you can make the necessary changes. There are no new fields in the previously created Model Instance.
.png)
If the agent reports exceeding context#
The context includes chat history, document fragments, and tool descriptions. Part of the model window is reserved for the response. Therefore, a short question may be accompanied by a large request.
On builds with precise counting fixes, the agent clarifies the size of the large request with the local model tokenizer before context truncation or rejection. If the tokenizer is unavailable, a cautious estimate is used.
If the error persists, try a new thread with a short question and one small document. For truly large requests, reduce the input data or choose a model with a larger window. If the error occurs immediately in a new thread, provide the administrator with the time, server version, selected model, mode, and thread ID. The administrator checks the availability of the tokenizer and the actual size of the request, including tools.
The "Context Length (tokens)" field must correspond to the capabilities of the running model instance. Increasing this field alone does not expand the engine's window.
Checking model capabilities#
The "Detect capabilities" button checks supported operations and shows the reason for a failed check in the same dialog.
The check requires permission to read and update Models, access to the selected Model, and a saved active Model instance.
- Open the "Edit Model" dialog from the Models screen.
- Select supported operations in the capability list. The default assignment appears next to each name. Clear the default assignment before disabling a capability.
- Click "Detect capabilities". Enable "Allow small diagnostic requests (may consume provider tokens)" only when requests to the provider are permitted.
- If the check fails, read the message below the button. Select and copy the text and HTTP status to contact support. Server errors show a generic message without internal details.
- Check the Model instance and try again. A failed check leaves manual settings unchanged. Click "OK" to save the Model settings.

The error reason and response status are available inside "Edit model".
.png)
.png)
.png)

.png)
.png)
.png)
.png)
.png)
