Discover LLMs
POST/v2/llms/discover
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.
Request
Responses
- 200
- 400
- 403
- 422
The discovered LLM configurations.
The request body is invalid.
Permissions do not allow discovering LLMs.
The endpoint could not be probed — no provider type could be determined for the supplied URI and credential, the supplied type contradicts what the credential and URI imply, or every detected provider's model listing failed. A reachable endpoint whose live test fails instead returns 200 with verified false and a verification_error.