v1

latestOpenAPI 3.1.02026-07-26349368.6 KB
LLM Configurations

Create Llm Configuration

Create a new LLM configuration for the authenticated user's space.

This endpoint:

  • Requires API key or session authentication
  • Validates that the secret_id belongs to the user's space
  • Creates a new LLM configuration with the provided settings

Args: service: Injected LLM configuration service payload: Request containing url, display_name, model_name, and secret_id

Returns: Response with created LLM configuration

Raises: 400 Bad Request: If user doesn't have an associated space or secret is invalid

post/v1/llm-configurations

Cookies

la_sessionstring

Request body

base_urlstring

The LLM API endpoint URL

display_namestring required

Display name for the configuration

model_namestring required

The model name to use

secret_idstring required

ID of the secret containing the API key

Response

Successful Response

codeinteger
messagestring