Skip to main content
The LLM Service provides endpoints for managing language model configurations, including adding, listing, and configuring models for use in conversations and other AI-powered features.

Authentication

All endpoints require a valid Bearer token in the Authorization header.

Base URL

Endpoints

Add Model

Add a new language model configuration.
Endpoint: POST /api/llm/add Request Body: Response:

List Models

Retrieve all language models configured for an organization.
Endpoint: GET /api/llm/list Query Parameters:

Error Responses

Implementation Notes

  • The LLM Service supports multiple providers, including OpenAI and Anthropic
  • Models can be enabled or disabled using the is_active flag
  • Custom configurations can be provided for each model
  • Model configurations are organization-specific
  • The service handles the underlying API integrations with model providers