Skip to content

AI providers

ThrillhouseBot works with any endpoint that implements the OpenAI chat-completions API. Set AI_BASE_URL and AI_MODEL for your provider:

ProviderAI_BASE_URLExample AI_MODEL
DeepSeekhttps://api.deepseek.com/v1deepseek-chat
OpenRouterhttps://openrouter.ai/api/v1openai/gpt-4o-mini
Alibaba Cloud (Model Studio)https://dashscope-intl.aliyuncs.com/compatible-mode/v1qwen-plus
OpenAIhttps://api.openai.com/v1gpt-4o-mini
Hugging Face Inference Providershttps://router.huggingface.co/v1openai/gpt-oss-120b
NVIDIA (build.nvidia.com)https://integrate.api.nvidia.com/v1meta/llama-3.3-70b-instruct
Ollama (local)http://localhost:11434/v1llama3.2

For Hugging Face, AI_API_KEY is an access token with the "Make calls to Inference Providers" permission. A free Hugging Face account includes no monthly credits, so requests need purchased credits or a PRO, Team or Enterprise plan; see the Inference Providers pricing. NVIDIA has a free tier, useful for trying the bot. AI_API_KEY is a key from build.nvidia.com, and the free tier is limited to about 40 requests per minute, so set AI_MAX_CONCURRENT_CALLS low (for example 2). Check each provider's current terms; both change them.

Ollama's cloud endpoint (https://ollama.com/v1) limits how many requests one account has in flight and refuses the rest with timed out waiting for a concurrent request slot. Reviews of different pull requests run in parallel and a large pull request sends its batches at once, so set AI_MAX_CONCURRENT_CALLS to the number of concurrent requests your plan allows. Calls past it wait for a slot instead of being refused, and a refusal that still gets through is retried after 30 seconds.

DeepSeek is the default provider. Set AI_BASE_URL, AI_MODEL and AI_API_KEY to use another provider.

Configure a provider through its OpenAI-compatible endpoint and model name. See Adding an AI provider in the architecture notes, and add a thrillhousebot.ai.pricing.<model>.* pair (see Configuration) if you want cost tracking for the model.