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
|
# LiteLLM config for inference.coop
|
||||||
# This file is written on first start by start.sh
|
# Simplified MVP config: Tinfoil (TEE, default) + FreeLLMAPI (free fallback)
|
||||||
# Provider keys are set via environment variables or the Admin UI
|
# Provider keys set via environment variables or Admin UI
|
||||||
|
|
||||||
model_list:
|
model_list:
|
||||||
# Tinfoil (TEE-protected inference) — default backend
|
# === Tinfoil (TEE-protected inference) — default backend ===
|
||||||
- model_name: gpt-oss-120b
|
- model_name: gpt-oss-120b
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: openai/gpt-oss-120b
|
model: openai/gpt-oss-120b
|
||||||
@@ -28,33 +28,45 @@ model_list:
|
|||||||
api_base: https://api.tinfoil.sh/v1
|
api_base: https://api.tinfoil.sh/v1
|
||||||
api_key: os.environ/TINFOIL_API_KEY
|
api_key: os.environ/TINFOIL_API_KEY
|
||||||
|
|
||||||
# OpenRouter — fallback for frontier models
|
# === FreeLLMAPI — free fallback, more models, no TEE ===
|
||||||
- model_name: claude-sonnet
|
- model_name: glm-5.2
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: openrouter/anthropic/claude-sonnet
|
model: openai/zai-org/GLM-5.2
|
||||||
api_base: https://openrouter.ai/api/v1
|
api_base: https://api.freellmapi.co/v1
|
||||||
api_key: os.environ/OPENROUTER_API_KEY
|
api_key: os.environ/FREELLMAPI_API_KEY
|
||||||
|
|
||||||
- model_name: gpt-4o
|
- model_name: gemini-flash
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: openrouter/openai/gpt-4o
|
model: openai/gemini-3.6-flash
|
||||||
api_base: https://openrouter.ai/api/v1
|
api_base: https://api.freellmapi.co/v1
|
||||||
api_key: os.environ/OPENROUTER_API_KEY
|
api_key: os.environ/FREELLMAPI_API_KEY
|
||||||
|
|
||||||
# Ollama (self-hosted, free) — if running on same Cloudron
|
- model_name: qwen-flash
|
||||||
- model_name: ollama-qwen
|
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: ollama/qwen3.5:7b
|
model: openai/qwen3.8-flash
|
||||||
api_base: http://127.0.0.1:11434
|
api_base: https://api.freellmapi.co/v1
|
||||||
api_key: "ollama"
|
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:
|
router_settings:
|
||||||
routing_strategy: simple-shuffle
|
routing_strategy: simple-shuffle
|
||||||
num_retries: 2
|
num_retries: 2
|
||||||
timeout: 30
|
timeout: 30
|
||||||
fallbacks:
|
fallbacks:
|
||||||
- gpt-oss-120b:
|
- 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:
|
general_settings:
|
||||||
master_key: os.environ/LITELLM_MASTER_KEY
|
master_key: os.environ/LITELLM_MASTER_KEY
|
||||||
|
|||||||
Reference in new issue
Block a user