Discover LLMs
Probes an external LLM provider endpoint and returns the model configurations most likely to work. The provider type and API dialect are inferred from the credential and the URI when type is omitted.
Nothing is persisted. Combine a returned candidate with a name and the credential you supplied here and submit it to POST /v2/llms.
Discovery live-tests at most three models per detected endpoint — with both OpenAI dialects probed, at most six upstream generation calls — and returns every usable model the endpoint advertises.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"uri": "https://api.openai.com/v1/chat/completions",
"type": "openai-compatible",
"auth": {
"type": "bearer",
"token": "abcdef......"
},
"test_model_parameters": {
"max_tokens": 512
}
}Response
The discovered LLM configurations.
Example response
{
"candidates": [
{
"type": "openai-compatible",
"uri": "https://api.openai.com/v1/chat/completions"
}
]
}Changes
Changed in 1 of the 7 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○