增加newapi的模型

This commit is contained in:
root
2026-07-12 10:34:05 +08:00
parent 3dd97730b6
commit 749431e253
+14 -2
View File
@@ -12,6 +12,18 @@ model_list:
# 4. 改完后运行 `python generate_keys.py`,检查监控别名和 HARD_DAILY_LIMITS 的限额来源。 # 4. 改完后运行 `python generate_keys.py`,检查监控别名和 HARD_DAILY_LIMITS 的限额来源。
#=======================newapi
- model_name: deepseek-v4-flash
litellm_params:
<<: *token_pricing
model: volcengine/deepseek-v4-flash
api_base: os.environ/NEWAPI_BASE_URL
api_key: os.environ/NEWAPI_API_KEY
#=======================火山平台,限时免费 #=======================火山平台,限时免费
@@ -421,9 +433,9 @@ litellm_settings:
#drop_params: true #启用drop_params,这样LiteLLM会忽略不支持的参数,但参数仍然会传递给后端API #drop_params: true #启用drop_params,这样LiteLLM会忽略不支持的参数,但参数仍然会传递给后端API
num_retries: 3 # retry call 3 times on each model_name (e.g. zephyr-beta) num_retries: 3 # retry call 3 times on each model_name (e.g. zephyr-beta)
fallbacks: [ fallbacks: [
{"glm-5.2": ["doubao-seed-medium"]} {"glm-5.2": ["deepseek-v4-flash"]}
] ]
default_fallbacks: ["doubao-seed-medium"] default_fallbacks: ["deepseek-v4-flash"]
request_timeout: 120 # raise Timeout error if call takes longer than 10s. Sets litellm.request_timeout request_timeout: 120 # raise Timeout error if call takes longer than 10s. Sets litellm.request_timeout
cache: False # 开启缓存 cache: False # 开启缓存
# cache_params: # cache_params: