litellm improved config
This commit is contained in:
parent
3e5805869d
commit
663df4bf5f
2 changed files with 83 additions and 70 deletions
|
|
@ -15,9 +15,11 @@ services:
|
||||||
--run_gunicorn
|
--run_gunicorn
|
||||||
networks:
|
networks:
|
||||||
- litellm-network
|
- litellm-network
|
||||||
- aido-llm
|
- onyx-network
|
||||||
expose:
|
expose:
|
||||||
- 4000
|
- 4000
|
||||||
|
ports:
|
||||||
|
- 4000:4000
|
||||||
environment:
|
environment:
|
||||||
- LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY}
|
- LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY}
|
||||||
- LITELLM_SALT_KEY=${LITELLM_SALT_KEY}
|
- LITELLM_SALT_KEY=${LITELLM_SALT_KEY}
|
||||||
|
|
@ -114,6 +116,6 @@ volumes:
|
||||||
networks:
|
networks:
|
||||||
litellm-network:
|
litellm-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
aido-llm:
|
onyx-network:
|
||||||
name: aido-llm
|
name: onyx-network
|
||||||
external: true
|
external: true
|
||||||
|
|
@ -3,13 +3,19 @@ general_settings:
|
||||||
database_url: os.environ/DATABASE_URL
|
database_url: os.environ/DATABASE_URL
|
||||||
store_model_in_db: true
|
store_model_in_db: true
|
||||||
store_prompts_in_spend_logs: false
|
store_prompts_in_spend_logs: false
|
||||||
use_redis_transaction_buffer: false
|
use_redis_transaction_buffer: true
|
||||||
user_api_key_cache_ttl: 300
|
user_api_key_cache_ttl: 300
|
||||||
enable_redis_auth_cache: false
|
enable_redis_auth_cache: true
|
||||||
allow_requests_on_db_unavailable: true
|
allow_requests_on_db_unavailable: false
|
||||||
json_logs: true
|
json_logs: true
|
||||||
health_check_interval: 60
|
health_check_interval: 300
|
||||||
health_check_timeout: 10
|
health_check_timeout: 10
|
||||||
|
background_health_checks: true
|
||||||
|
enable_health_check_routing: true
|
||||||
|
store_audit_logs: true
|
||||||
|
maximum_spend_logs_retention_period: 90
|
||||||
|
disable_env_credential_login: true
|
||||||
|
disable_master_key_return: true
|
||||||
|
|
||||||
litellm_settings:
|
litellm_settings:
|
||||||
drop_params: false
|
drop_params: false
|
||||||
|
|
@ -17,8 +23,6 @@ litellm_settings:
|
||||||
request_timeout: 600
|
request_timeout: 600
|
||||||
num_retries: 2
|
num_retries: 2
|
||||||
cache: false
|
cache: false
|
||||||
redact_user_api_key_info: true
|
|
||||||
turn_off_message_logging: true
|
|
||||||
|
|
||||||
model_list:
|
model_list:
|
||||||
- model_name: LivQwenMax
|
- model_name: LivQwenMax
|
||||||
|
|
@ -32,8 +36,10 @@ model_list:
|
||||||
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"
|
||||||
input_cost_per_token: 0.0000008
|
max_tokens: 200000
|
||||||
output_cost_per_token: 0.0000036
|
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
|
||||||
supports_vision: true
|
supports_vision: true
|
||||||
supports_reasoning: true
|
supports_reasoning: true
|
||||||
supports_function_calling: true
|
supports_function_calling: true
|
||||||
|
|
@ -44,9 +50,6 @@ 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: "qwen-family"
|
model_group: "qwen-family"
|
||||||
region: "ch-gva"
|
region: "ch-gva"
|
||||||
|
|
@ -62,8 +65,10 @@ model_list:
|
||||||
model_info:
|
model_info:
|
||||||
id: "infomaniak-qwen122-1"
|
id: "infomaniak-qwen122-1"
|
||||||
base_model: "Qwen/Qwen3.5-122B-A10B-FP8"
|
base_model: "Qwen/Qwen3.5-122B-A10B-FP8"
|
||||||
input_cost_per_token: 0.0000004
|
max_tokens: 200000
|
||||||
output_cost_per_token: 0.0000032
|
max_output_tokens: 8000
|
||||||
|
input_cost_per_token: 0.00000044 # CHF 0.40 in USD
|
||||||
|
output_cost_per_token: 0.00000352 # CHF 3.20 in USD
|
||||||
supports_vision: true
|
supports_vision: true
|
||||||
supports_reasoning: true
|
supports_reasoning: true
|
||||||
supports_function_calling: true
|
supports_function_calling: true
|
||||||
|
|
@ -74,9 +79,6 @@ 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: "qwen-family"
|
model_group: "qwen-family"
|
||||||
region: "ch-gva"
|
region: "ch-gva"
|
||||||
|
|
@ -92,8 +94,10 @@ model_list:
|
||||||
model_info:
|
model_info:
|
||||||
id: "infomaniak-kimi-1"
|
id: "infomaniak-kimi-1"
|
||||||
base_model: "moonshotai/Kimi-K2.6"
|
base_model: "moonshotai/Kimi-K2.6"
|
||||||
input_cost_per_token: 0.0000006
|
max_tokens: 256000
|
||||||
output_cost_per_token: 0.000003
|
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
|
||||||
supports_vision: true
|
supports_vision: true
|
||||||
supports_reasoning: true
|
supports_reasoning: true
|
||||||
supports_function_calling: true
|
supports_function_calling: true
|
||||||
|
|
@ -104,9 +108,6 @@ 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: "kimi-family"
|
model_group: "kimi-family"
|
||||||
region: "ch-gva"
|
region: "ch-gva"
|
||||||
|
|
@ -122,8 +123,10 @@ model_list:
|
||||||
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"
|
||||||
input_cost_per_token: 0.0000003
|
max_tokens: 100000
|
||||||
output_cost_per_token: 0.0000004
|
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
|
||||||
supports_vision: true
|
supports_vision: true
|
||||||
supports_reasoning: false
|
supports_reasoning: false
|
||||||
supports_function_calling: true
|
supports_function_calling: true
|
||||||
|
|
@ -134,41 +137,40 @@ model_list:
|
||||||
supports_web_search: false
|
supports_web_search: false
|
||||||
supports_prompt_caching: false
|
supports_prompt_caching: false
|
||||||
supports_embedding: false
|
supports_embedding: false
|
||||||
|
mode: "chat"
|
||||||
|
model_group: "mistral-family"
|
||||||
|
region: "ch-gva"
|
||||||
|
|
||||||
|
- model_name: LivGemma
|
||||||
|
litellm_params:
|
||||||
|
model: google/gemma-4-31B-it
|
||||||
|
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_output_tokens: 8192
|
||||||
|
input_cost_per_token: 0.0000002
|
||||||
|
output_cost_per_token: 0.0000004
|
||||||
|
supports_vision: false
|
||||||
|
supports_reasoning: false
|
||||||
|
supports_function_calling: true
|
||||||
|
supports_parallel_function_calling: true
|
||||||
|
supports_response_schema: true
|
||||||
|
supports_system_messages: true
|
||||||
|
supports_tool_choice: true
|
||||||
|
supports_web_search: false
|
||||||
|
supports_prompt_caching: false
|
||||||
|
supports_embedding: false
|
||||||
supports_audio_input: false
|
supports_audio_input: false
|
||||||
supports_audio_output: false
|
supports_audio_output: false
|
||||||
supports_computer_use: false
|
supports_computer_use: false
|
||||||
mode: "chat"
|
mode: "chat"
|
||||||
model_group: "mistral-family"
|
model_group: "gemma-family"
|
||||||
region: "ch-gva"
|
|
||||||
|
|
||||||
- model_name: LivNemotron
|
|
||||||
litellm_params:
|
|
||||||
model: nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-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-nemotron-nano-1"
|
|
||||||
base_model: "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8"
|
|
||||||
input_cost_per_token: 0.00000005
|
|
||||||
output_cost_per_token: 0.0000002
|
|
||||||
supports_vision: false
|
|
||||||
supports_reasoning: false
|
|
||||||
supports_function_calling: true
|
|
||||||
supports_parallel_function_calling: false
|
|
||||||
supports_response_schema: true
|
|
||||||
supports_system_messages: true
|
|
||||||
supports_tool_choice: true
|
|
||||||
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: "nemotron-family"
|
|
||||||
region: "ch-gva"
|
region: "ch-gva"
|
||||||
|
|
||||||
- model_name: LivQwenEmbed
|
- model_name: LivQwenEmbed
|
||||||
|
|
@ -182,7 +184,7 @@ model_list:
|
||||||
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.00000007
|
input_cost_per_token: 0.000000077 # CHF 0.07 in USD
|
||||||
supports_vision: false
|
supports_vision: false
|
||||||
supports_reasoning: false
|
supports_reasoning: false
|
||||||
supports_function_calling: false
|
supports_function_calling: false
|
||||||
|
|
@ -193,9 +195,6 @@ model_list:
|
||||||
supports_web_search: false
|
supports_web_search: false
|
||||||
supports_prompt_caching: false
|
supports_prompt_caching: false
|
||||||
supports_embedding: true
|
supports_embedding: true
|
||||||
supports_audio_input: false
|
|
||||||
supports_audio_output: false
|
|
||||||
supports_computer_use: false
|
|
||||||
mode: "embedding"
|
mode: "embedding"
|
||||||
model_group: "qwen-family"
|
model_group: "qwen-family"
|
||||||
region: "ch-gva"
|
region: "ch-gva"
|
||||||
|
|
@ -203,30 +202,42 @@ model_list:
|
||||||
router_settings:
|
router_settings:
|
||||||
redis_host: litellm-redis
|
redis_host: litellm-redis
|
||||||
redis_port: 6379
|
redis_port: 6379
|
||||||
|
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
|
||||||
cooldown_time: 30
|
cooldown_time: 120
|
||||||
client_ttl: 3600
|
client_ttl: 3600
|
||||||
enable_pre_call_checks: true
|
enable_pre_call_checks: true
|
||||||
|
max_fallbacks: 3
|
||||||
|
health_check_ignore_transient_errors: true
|
||||||
|
|
||||||
retry_policy:
|
retry_policy:
|
||||||
RateLimitErrorRetries: 2
|
RateLimitErrorRetries: 3
|
||||||
TimeoutErrorRetries: 3
|
TimeoutErrorRetries: 3
|
||||||
AuthenticationErrorRetries: 0
|
AuthenticationErrorRetries: 0
|
||||||
BadRequestErrorRetries: 1
|
BadRequestErrorRetries: 1
|
||||||
InternalServerErrorRetries: 4
|
InternalServerErrorRetries: 5
|
||||||
ContentPolicyViolationErrorRetries: 1
|
ContentPolicyViolationErrorRetries: 1
|
||||||
|
|
||||||
allowed_fails_policy:
|
allowed_fails_policy:
|
||||||
BadRequestErrorAllowedFails: 3
|
BadRequestErrorAllowedFails: 3
|
||||||
AuthenticationErrorAllowedFails: 1
|
AuthenticationErrorAllowedFails: 1
|
||||||
TimeoutErrorAllowedFails: 5
|
TimeoutErrorAllowedFails: 5
|
||||||
RateLimitErrorAllowedFails: 3
|
RateLimitErrorAllowedFails: 10
|
||||||
InternalServerErrorAllowedFails: 5
|
InternalServerErrorAllowedFails: 10
|
||||||
ContentPolicyViolationErrorAllowedFails: 1
|
ContentPolicyViolationErrorAllowedFails: 1
|
||||||
|
|
||||||
|
|
||||||
fallbacks:
|
fallbacks:
|
||||||
- LivQwenMax: [LivQwen, LivKimi]
|
- LivQwenMax: [LivQwen, LivKimi, LivMinistral]
|
||||||
- LivQwen: [LivQwenMax, LivKimi]
|
- LivQwen: [LivKimi, LivMinistral]
|
||||||
- LivKimi: [LivQwen, LivQwenMax]
|
- LivKimi: [LivMinistral]
|
||||||
|
- LivMinistral: []
|
||||||
|
|
||||||
|
content_policy_fallbacks:
|
||||||
|
- LivQwenMax: [LivQwen, LivMinistral]
|
||||||
|
|
||||||
|
context_window_fallbacks:
|
||||||
|
- LivQwenMax: [LivKimi]
|
||||||
|
- LivQwen: [LivKimi]
|
||||||
Loading…
Add table
Reference in a new issue