Update litellm-config.yaml
This commit is contained in:
parent
2312ae0687
commit
ff16789333
1 changed files with 50 additions and 60 deletions
|
|
@ -1,3 +1,11 @@
|
|||
# ─────────────────────────────────────────────────────────────────────
|
||||
# LiteLLM Proxy — Livtec AG
|
||||
# Backend: Infomaniak Kili (single API key, 30 RPM chat / 100 RPM embed)
|
||||
# Consumer: Onyx AI
|
||||
# Strategy: Pass-through — Infomaniak 429s reach Onyx directly.
|
||||
# No LiteLLM-side rate limiting, no fallbacks (single provider).
|
||||
# ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
general_settings:
|
||||
master_key: os.environ/LITELLM_MASTER_KEY
|
||||
database_url: os.environ/DATABASE_URL
|
||||
|
|
@ -18,28 +26,29 @@ general_settings:
|
|||
disable_master_key_return: true
|
||||
|
||||
litellm_settings:
|
||||
drop_params: false
|
||||
drop_params: true
|
||||
set_verbose: false
|
||||
request_timeout: 600
|
||||
num_retries: 2
|
||||
cache: false
|
||||
|
||||
model_list:
|
||||
|
||||
# ────────────── CHAT MODELS (30 RPM on Infomaniak API key) ──────────────
|
||||
|
||||
- model_name: LivQwenMax
|
||||
litellm_params:
|
||||
model: Qwen/Qwen3.5-397B-A17B-FP8
|
||||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-qwen397-1"
|
||||
base_model: "Qwen/Qwen3.5-397B-A17B-FP8"
|
||||
max_tokens: 200000
|
||||
max_output_tokens: 8000
|
||||
input_cost_per_token: 0.00000088 # CHF 0.80 in USD
|
||||
output_cost_per_token: 0.00000396 # CHF 3.60 in USD
|
||||
max_output_tokens: 32768
|
||||
input_cost_per_token: 0.000001
|
||||
output_cost_per_token: 0.0000045
|
||||
supports_vision: true
|
||||
supports_reasoning: true
|
||||
supports_function_calling: true
|
||||
|
|
@ -60,16 +69,14 @@ model_list:
|
|||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-qwen38-1"
|
||||
base_model: "Qwen/Qwen3.8-27B-FP8"
|
||||
max_input_tokens: 100000 # ← Infomaniak's published input cap (was 128000/262144)
|
||||
max_output_tokens: 32768 # ← the truncation fix (was 8000)
|
||||
max_tokens: 100000 # legacy; keep in sync with the input cap
|
||||
input_cost_per_token: 0.0000004874
|
||||
output_cost_per_token: 0.0000036551
|
||||
max_tokens: 100000
|
||||
max_input_tokens: 67232
|
||||
max_output_tokens: 32768
|
||||
input_cost_per_token: 0.0000005
|
||||
output_cost_per_token: 0.00000375
|
||||
supports_vision: true
|
||||
supports_reasoning: true
|
||||
supports_function_calling: true
|
||||
|
|
@ -90,15 +97,13 @@ model_list:
|
|||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-kimi-1"
|
||||
base_model: "moonshotai/Kimi-K2.6"
|
||||
max_tokens: 256000
|
||||
max_output_tokens: 8000
|
||||
input_cost_per_token: 0.00000066 # CHF 0.60 in USD
|
||||
output_cost_per_token: 0.00000330 # CHF 3.00 in USD
|
||||
max_output_tokens: 32768
|
||||
input_cost_per_token: 0.00000075
|
||||
output_cost_per_token: 0.00000375
|
||||
supports_vision: true
|
||||
supports_reasoning: true
|
||||
supports_function_calling: true
|
||||
|
|
@ -119,15 +124,13 @@ model_list:
|
|||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-ministral-3-14b-1"
|
||||
base_model: "mistralai/Ministral-3-14B-Instruct-2512"
|
||||
max_tokens: 100000
|
||||
max_output_tokens: 8000
|
||||
input_cost_per_token: 0.00000033 # CHF 0.30 in USD
|
||||
output_cost_per_token: 0.00000044 # CHF 0.40 in USD
|
||||
input_cost_per_token: 0.000000375
|
||||
output_cost_per_token: 0.0000005
|
||||
supports_vision: true
|
||||
supports_reasoning: false
|
||||
supports_function_calling: true
|
||||
|
|
@ -148,15 +151,13 @@ model_list:
|
|||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-gemma-4-31b-1"
|
||||
base_model: "google/gemma-4-31B-it"
|
||||
max_tokens: 131072
|
||||
max_tokens: 100000
|
||||
max_output_tokens: 8192
|
||||
input_cost_per_token: 0.0000002
|
||||
output_cost_per_token: 0.0000004
|
||||
input_cost_per_token: 0.00000025
|
||||
output_cost_per_token: 0.0000005
|
||||
supports_vision: false
|
||||
supports_reasoning: false
|
||||
supports_function_calling: true
|
||||
|
|
@ -167,25 +168,23 @@ model_list:
|
|||
supports_web_search: false
|
||||
supports_prompt_caching: false
|
||||
supports_embedding: false
|
||||
supports_audio_input: false
|
||||
supports_audio_output: false
|
||||
supports_computer_use: false
|
||||
mode: "chat"
|
||||
model_group: "gemma-family"
|
||||
region: "ch-gva"
|
||||
|
||||
# ────────────── EMBEDDING (100 RPM on Infomaniak API key) ──────────────
|
||||
|
||||
- model_name: LivQwenEmbed
|
||||
litellm_params:
|
||||
model: Qwen/Qwen3-Embedding-8B
|
||||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-qwen-embed-1"
|
||||
base_model: "Qwen/Qwen3-Embedding-8B"
|
||||
input_cost_per_token: 0.000000077 # CHF 0.07 in USD
|
||||
max_tokens: 8192
|
||||
input_cost_per_token: 0.0000000875
|
||||
supports_vision: false
|
||||
supports_reasoning: false
|
||||
supports_function_calling: false
|
||||
|
|
@ -200,19 +199,17 @@ model_list:
|
|||
model_group: "qwen-family"
|
||||
region: "ch-gva"
|
||||
|
||||
# Fallback C1003 & C1019
|
||||
- model_name: LivQwenEmbed2
|
||||
litellm_params:
|
||||
model: Qwen/Qwen3-Embedding-8B
|
||||
custom_llm_provider: openai
|
||||
api_base: os.environ/INFOMANIAK_BASE
|
||||
api_key: os.environ/INFOMANIAK_API_KEY
|
||||
rpm: 50
|
||||
tpm: 500000
|
||||
model_info:
|
||||
id: "infomaniak-qwen-embed-1"
|
||||
id: "infomaniak-qwen-embed-2"
|
||||
base_model: "Qwen/Qwen3-Embedding-8B"
|
||||
input_cost_per_token: 0.000000077 # CHF 0.07 in USD
|
||||
max_tokens: 8192
|
||||
input_cost_per_token: 0.0000000875
|
||||
supports_vision: false
|
||||
supports_reasoning: false
|
||||
supports_function_calling: false
|
||||
|
|
@ -227,10 +224,12 @@ model_list:
|
|||
model_group: "qwen-family"
|
||||
region: "ch-gva"
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────
|
||||
router_settings:
|
||||
redis_host: litellm-redis
|
||||
redis_port: 6379
|
||||
redis_password: os.environ/REDIS_PASSWORD
|
||||
|
||||
routing_strategy: simple-shuffle
|
||||
retry_after: 5
|
||||
allowed_fails: 3
|
||||
|
|
@ -240,13 +239,14 @@ router_settings:
|
|||
max_fallbacks: 3
|
||||
health_check_ignore_transient_errors: true
|
||||
|
||||
# ── Retry policy: pass 429s straight through to Onyx ──
|
||||
retry_policy:
|
||||
RateLimitErrorRetries: 3
|
||||
TimeoutErrorRetries: 3
|
||||
AuthenticationErrorRetries: 0
|
||||
BadRequestErrorRetries: 1
|
||||
InternalServerErrorRetries: 5
|
||||
ContentPolicyViolationErrorRetries: 1
|
||||
RateLimitErrorRetries: 0 # 429 → Onyx at t+0, Onyx backs off
|
||||
AuthenticationErrorRetries: 0 # won't fix itself
|
||||
BadRequestErrorRetries: 0 # won't fix itself
|
||||
ContentPolicyViolationErrorRetries: 0 # won't fix itself
|
||||
TimeoutErrorRetries: 3 # transient
|
||||
InternalServerErrorRetries: 3 # transient
|
||||
|
||||
allowed_fails_policy:
|
||||
BadRequestErrorAllowedFails: 3
|
||||
|
|
@ -256,17 +256,7 @@ router_settings:
|
|||
InternalServerErrorAllowedFails: 10
|
||||
ContentPolicyViolationErrorAllowedFails: 1
|
||||
|
||||
|
||||
fallbacks:
|
||||
- LivQwenMax: [LivQwen, LivKimi, LivQwen38, LivMinistral]
|
||||
- LivQwen: [LivKimi, LivQwen38, LivMinistral]
|
||||
- LivKimi: [LivQwen38, LivMinistral]
|
||||
- LivQwen38: [LivMinistral]
|
||||
- LivMinistral: []
|
||||
|
||||
content_policy_fallbacks:
|
||||
- LivQwenMax: [LivQwen, LivQwen38, LivMinistral]
|
||||
|
||||
context_window_fallbacks:
|
||||
- LivQwenMax: [LivKimi]
|
||||
- LivQwen: [LivKimi]
|
||||
# ── No fallbacks, no content_policy_fallbacks, no context_window_fallbacks ──
|
||||
# Single provider (Infomaniak), single API key → 30 RPM is shared across
|
||||
# all chat models. Falling back to another model on the same key will also 429.
|
||||
# Add fallbacks when you introduce a second provider or API key.
|
||||
Loading…
Add table
Reference in a new issue