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