Register an LLM
POST/llms
Registers a connection to a model server that exposes an OpenAI-compatible API. Foundation4 does not contact the model server during registration, so an incorrect endpoint or API key appears only when the LLM is first used. Foundation4 encrypts the API key before storage, and no response returns the key.
Permissions. Write on the LLM object type (llms).
LLMs describes the fields of a registration and the requirements on the model server.
Request
Responses
- 201
- 401
- 403
- 409
The LLM was registered. The body is the new LLM registration, without the API key.
The authentication headers are missing or invalid, or the API key is inactive or expired. Errors lists the messages.
The key lacks write permission on the llms object type (Unauthorized: access level ... required for LLM ...), the license is not valid (Invalid license: <reason>) or the license limit for LLMs is reached (License limits exceeded for LLM).
Another LLM already has this name (Conflict unique error).