From 749431e253a9f50f8de82c95753b857adcd72e51 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 12 Jul 2026 10:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0newapi=E7=9A=84=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index d8ee1b3..0b4902a 100644 --- a/config.yaml +++ b/config.yaml @@ -12,6 +12,18 @@ model_list: # 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 num_retries: 3 # retry call 3 times on each model_name (e.g. zephyr-beta) 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 cache: False # 开启缓存 # cache_params: