Overview
The LLM API provides endpoints for managing Large Language Model integration. LLM features power ontology generation from natural language and entity extraction from unstructured data.List Available Models
Get available LLM models from the configured provider.Provider name (
openrouter, openai_compat, or none)Whether LLM features are available
Available model list (cached with TTL)
Configuration
LLM integration is configured via environment variables:| Variable | Description | Example |
|---|---|---|
LLM_ENABLED | Enable LLM features | true |
LLM_PROVIDER | Provider type | openrouter or openai_compat |
LLM_API_KEY | API key | sk-... |
LLM_BASE_URL | Base URL (openai_compat only) | https://api.together.xyz/v1 |
LLM_MODEL | Default model | anthropic/claude-3-opus |
OpenRouter Provider
OpenAI-Compatible Provider
External LLM Providers
Dynamically install custom LLM provider plugins from Go source repositories.List External Providers
Get all installed external LLM providers.Provider identifier
Whether the provider .so is currently loaded
Install External Provider
Install an external LLM provider from a Git repository.Unique provider identifier
Git repository URL. Must export
var Provider satisfying the LLM provider interface.Git tag, branch, or commit SHA
Human-readable description
201 Created or 422 Unprocessable Entity (compilation failure)
Get External Provider
Get details for a specific external provider.Uninstall External Provider
Remove an external LLM provider.204 No Content
Go plugins cannot be unloaded from memory. An orchestrator restart is required for full removal.
LLM Features
LLM integration powers:- Ontology Generation: Generate OWL ontologies from natural language descriptions
- Entity Extraction: Extract structured entities from unstructured text, documents, and media
- Schema Inference: Infer entity types and relationships from raw data