Simplify config: Tinfoil (TEE default) + FreeLLMAPI (free fallback). Remove OpenRouter/Ollama for MVP.
This commit is contained in:
1 parent
95841b88f3
commit
ad885df7e0
1 file changed
+30
-18
@@ -1,9 +1,9 @@
|
||||
# LiteLLM config for inference.coop
|
||||
# This file is written on first start by start.sh
|
||||
# Provider keys are set via environment variables or the Admin UI
|
||||
# Simplified MVP config: Tinfoil (TEE, default) + FreeLLMAPI (free fallback)
|
||||
# Provider keys set via environment variables or Admin UI
|
||||
|
||||
model_list:
|
||||
# Tinfoil (TEE-protected inference) — default backend
|
||||
# === Tinfoil (TEE-protected inference) — default backend ===
|
||||
- model_name: gpt-oss-120b
|
||||
litellm_params:
|
||||
model: openai/gpt-oss-120b
|
||||
@@ -28,33 +28,45 @@ model_list:
|
||||
api_base: https://api.tinfoil.sh/v1
|
||||
api_key: os.environ/TINFOIL_API_KEY
|
||||
|
||||
# OpenRouter — fallback for frontier models
|
||||
- model_name: claude-sonnet
|
||||
# === FreeLLMAPI — free fallback, more models, no TEE ===
|
||||
- model_name: glm-5.2
|
||||
litellm_params:
|
||||
model: openrouter/anthropic/claude-sonnet
|
||||
api_base: https://openrouter.ai/api/v1
|
||||
api_key: os.environ/OPENROUTER_API_KEY
|
||||
model: openai/zai-org/GLM-5.2
|
||||
api_base: https://api.freellmapi.co/v1
|
||||
api_key: os.environ/FREELLMAPI_API_KEY
|
||||
|
||||
- model_name: gpt-4o
|
||||
- model_name: gemini-flash
|
||||
litellm_params:
|
||||
model: openrouter/openai/gpt-4o
|
||||
api_base: https://openrouter.ai/api/v1
|
||||
api_key: os.environ/OPENROUTER_API_KEY
|
||||
model: openai/gemini-3.6-flash
|
||||
api_base: https://api.freellmapi.co/v1
|
||||
api_key: os.environ/FREELLMAPI_API_KEY
|
||||
|
||||
# Ollama (self-hosted, free) — if running on same Cloudron
|
||||
- model_name: ollama-qwen
|
||||
- model_name: qwen-flash
|
||||
litellm_params:
|
||||
model: ollama/qwen3.5:7b
|
||||
api_base: http://127.0.0.1:11434
|
||||
api_key: "ollama"
|
||||
model: openai/qwen3.8-flash
|
||||
api_base: https://api.freellmapi.co/v1
|
||||
api_key: os.environ/FREELLMAPI_API_KEY
|
||||
|
||||
- model_name: kimi-k3
|
||||
litellm_params:
|
||||
model: openai/moonshotai/Kimi-K3
|
||||
api_base: https://api.freellmapi.co/v1
|
||||
api_key: os.environ/FREELLMAPI_API_KEY
|
||||
|
||||
# Fallbacks: if Tinfoil is down or rate-limited, fall back to FreeLLMAPI
|
||||
router_settings:
|
||||
routing_strategy: simple-shuffle
|
||||
num_retries: 2
|
||||
timeout: 30
|
||||
fallbacks:
|
||||
- gpt-oss-120b:
|
||||
- gpt-4o
|
||||
- glm-5.2
|
||||
- deepseek-v4-flash:
|
||||
- qwen-flash
|
||||
- gemma4-31b:
|
||||
- gemini-flash
|
||||
- llama3-3-70b:
|
||||
- glm-5.2
|
||||
|
||||
general_settings:
|
||||
master_key: os.environ/LITELLM_MASTER_KEY
|
||||
|
||||
Reference in new issue
Block a user