Skip to main content

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.

anyOf
string
api_key object

Write-only API key used for this test. Omit it with model_id to use that model's stored key.

anyOf
string
model_id object

Existing model identifier whose stored API key should be used for a post-save test.

anyOf
string
collection_id object

Identifier of the containing collection.

anyOf
string
LLMModelTestRequest
{
"provider": "string",
"base_url": "string",
"model": "string",
"api_key": "string",
"model_id": "string",
"collection_id": "string"
}