Create Llm Configuration
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
Create Llm Configuration
Authorizations
Cookies
Body
application/json
Request schema for creating a new LLM configuration
Display name for the configuration
Required string length:
1 - 255The model name to use
Required string length:
1 - 255ID of the secret containing the API key
Required string length:
1 - 36The LLM API endpoint URL