LLM Configurations

Create Llm Configuration

Changed on

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

Request

  • Base URL
    https://api.liveavatar.com
  • URL
    https://api.liveavatar.com/v1/llm-configurations
  • Auth
    API key in header X-API-KEY

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

Changes