LLMModelTestRequest
External LLM endpoint connection test request. Supports both pre-save (form base_url + api_key) and post-save (model_id with api_key omitted → server loads the stored key). A body api_key always takes precedence over the stored one.
providerProvider (string)required
Provider identifier to test.
base_urlBase Url (string)required
Base URL of the external model endpoint to test.
model object
Model identifier whose availability should be checked.
- string
- null
string
api_key object
Write-only API key used for this test. Omit it with model_id to use that model's stored key.
- string
- null
string
model_id object
Existing model identifier whose stored API key should be used for a post-save test.
- string
- null
string
collection_id object
Identifier of the containing collection.
- string
- null
string
LLMModelTestRequest
{
"provider": "string",
"base_url": "string",
"model": "string",
"api_key": "string",
"model_id": "string",
"collection_id": "string"
}