Raxol.Agent.Backend.HTTP
(Raxol v2.3.0)
View Source
HTTP-based AI backend using Req.
Supports Claude (Anthropic), GPT (OpenAI-compatible), Ollama, and Kimi APIs. The provider is auto-detected from the base URL or can be set explicitly.
Configuration
opts = [
api_key: "sk-...",
base_url: "https://api.anthropic.com",
model: "claude-sonnet-4-20250514",
provider: :anthropic, # or :openai, :ollama, :kimi (auto-detected if omitted)
timeout: 30_000
]