LiteLLM package: add logo.png, align start.sh config with Tinfoil-only MVP (2 models)
This commit is contained in:
1 parent
a8fb69475c
commit
e7efc368c8
2 files changed
+10
-41
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 6.6 KiB |
@@ -83,64 +83,33 @@ if [ ! -f "$CONFIG_FILE" ] || [ ! -s "$CONFIG_FILE" ]; then
|
|||||||
echo "Writing default config.yaml..."
|
echo "Writing default config.yaml..."
|
||||||
cat > "$CONFIG_FILE" << 'YAML'
|
cat > "$CONFIG_FILE" << 'YAML'
|
||||||
# LiteLLM config for inference.coop
|
# LiteLLM config for inference.coop
|
||||||
# Provider keys are set via environment variables or the Admin UI
|
# MVP config: Tinfoil only (TEE-protected, privacy-first)
|
||||||
|
# Two models: DeepSeek V4 Flash (default, best agents) + GPT-OSS 120B (cheapest)
|
||||||
|
# Provider key set via environment variable or Admin UI
|
||||||
|
|
||||||
model_list:
|
model_list:
|
||||||
# Tinfoil (TEE-protected inference) — default backend
|
# DeepSeek V4 Flash — default model
|
||||||
- model_name: gpt-oss-120b
|
|
||||||
litellm_params:
|
|
||||||
model: openai/gpt-oss-120b
|
|
||||||
api_base: https://api.tinfoil.sh/v1
|
|
||||||
api_key: os.environ/TINFOIL_API_KEY
|
|
||||||
|
|
||||||
- model_name: deepseek-v4-flash
|
- model_name: deepseek-v4-flash
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: openai/deepseek-v4-flash
|
model: openai/deepseek-v4-flash
|
||||||
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
|
||||||
|
|
||||||
- model_name: gemma4-31b
|
# GPT-OSS 120B — lightweight fallback
|
||||||
|
- model_name: gpt-oss-120b
|
||||||
litellm_params:
|
litellm_params:
|
||||||
model: openai/gemma4-31b
|
model: openai/gpt-oss-120b
|
||||||
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
|
||||||
|
|
||||||
- model_name: llama3-3-70b
|
# Fallback: if DeepSeek is down, use GPT-OSS
|
||||||
litellm_params:
|
|
||||||
model: openai/llama3-3-70b
|
|
||||||
api_base: https://api.tinfoil.sh/v1
|
|
||||||
api_key: os.environ/TINFOIL_API_KEY
|
|
||||||
|
|
||||||
# OpenRouter — fallback for frontier models (Claude, GPT)
|
|
||||||
- model_name: claude-sonnet
|
|
||||||
litellm_params:
|
|
||||||
model: openrouter/anthropic/claude-sonnet
|
|
||||||
api_base: https://openrouter.ai/api/v1
|
|
||||||
api_key: os.environ/OPENROUTER_API_KEY
|
|
||||||
|
|
||||||
- model_name: gpt-4o
|
|
||||||
litellm_params:
|
|
||||||
model: openrouter/openai/gpt-4o
|
|
||||||
api_base: https://openrouter.ai/api/v1
|
|
||||||
api_key: os.environ/OPENROUTER_API_KEY
|
|
||||||
|
|
||||||
# Ollama (self-hosted, free) — if running on same Cloudron
|
|
||||||
- model_name: ollama-qwen
|
|
||||||
litellm_params:
|
|
||||||
model: ollama/qwen3.5:7b
|
|
||||||
api_base: http://127.0.0.1:11434
|
|
||||||
api_key: "ollama"
|
|
||||||
|
|
||||||
# Fallback routing: try Tinfoil first, fall back to OpenRouter
|
|
||||||
router_settings:
|
router_settings:
|
||||||
routing_strategy: simple-shuffle
|
|
||||||
num_retries: 2
|
num_retries: 2
|
||||||
timeout: 30
|
timeout: 30
|
||||||
fallbacks:
|
fallbacks:
|
||||||
- gpt-oss-120b:
|
- deepseek-v4-flash:
|
||||||
- gpt-4o
|
- gpt-oss-120b
|
||||||
|
|
||||||
# General settings
|
|
||||||
general_settings:
|
general_settings:
|
||||||
master_key: os.environ/LITELLM_MASTER_KEY
|
master_key: os.environ/LITELLM_MASTER_KEY
|
||||||
database_url: os.environ/DATABASE_URL
|
database_url: os.environ/DATABASE_URL
|
||||||
|
|||||||
Reference in new issue
Block a user