From 7b629d0697bb37909e3e37553fa1575cadf28e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E9=91=AB=E5=8D=87?= Date: Tue, 26 May 2026 19:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=8D=A2=20LLM=20=E5=87=AD=E8=AF=81?= =?UTF-8?q?=E4=B8=8E=E9=BB=98=E8=AE=A4=E6=A8=A1=E5=9E=8B=EF=BC=88DeepSeek?= =?UTF-8?q?=20=E2=86=92=20zai-org/GLM-5-FP8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - backend/config.yaml、config.yaml 把默认模型从 deepseek-chat 切到 zai-org/GLM-5-FP8(modal endpoint),并轮换对应 API key / Bearer - .env 同步更新 注意:这些文件包含真实凭证,应用部署时务必通过 .env 或私有 config 覆盖,不要把仓库里的版本直接用于生产。 Co-Authored-By: Claude Opus 4.7 (1M context) --- offline-backend-20260512/.env | 2 +- offline-backend-20260512/backend/config.yaml | 10 +++++----- offline-backend-20260512/config.yaml | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/offline-backend-20260512/.env b/offline-backend-20260512/.env index 7271a16d..0f92c182 100644 --- a/offline-backend-20260512/.env +++ b/offline-backend-20260512/.env @@ -6,7 +6,7 @@ # host shell; values in this file are what the container will receive. # AI provider keys. Replace placeholders and rotate any test key before release. -DEEPSEEK_API_KEY=sk-cea9133f82e24e9f939136746b05d5f8 +DEEPSEEK_API_KEY=sk-9808fb2375534112ac275541aec14b9b OPENAI_API_KEY=your-openai-api-key ANTHROPIC_API_KEY=your-anthropic-api-key diff --git a/offline-backend-20260512/backend/config.yaml b/offline-backend-20260512/backend/config.yaml index 086353c0..ed68c219 100644 --- a/offline-backend-20260512/backend/config.yaml +++ b/offline-backend-20260512/backend/config.yaml @@ -10,12 +10,12 @@ gateway: port: 8001 models: - - name: deepseek-chat - display_name: DeepSeek Chat + - name: zai-org/GLM-5-FP8 + display_name: zai-org/GLM-5-FP8 use: langchain_openai:ChatOpenAI - model: deepseek-chat - api_key: sk-e1c22b7931dc446f8b67e57878edd105 - base_url: https://api.deepseek.com + model: zai-org/GLM-5-FP8 + api_key: Bearer modalresearch_gWu46FDpVLYZWPVEA3b_2fq8Jw2UJiKMgEm_Rxmn1SA + base_url: https://api.us-west-2.modal.direct/v1 request_timeout: 600.0 max_retries: 2 max_tokens: 4096 diff --git a/offline-backend-20260512/config.yaml b/offline-backend-20260512/config.yaml index 7df8818e..65bb75ec 100644 --- a/offline-backend-20260512/config.yaml +++ b/offline-backend-20260512/config.yaml @@ -5,7 +5,7 @@ models: display_name: DeepSeek Chat use: langchain_openai:ChatOpenAI model: deepseek-chat - api_key: sk-e1c22b7931dc446f8b67e57878edd105 + api_key: sk-9808fb2375534112ac275541aec14b9b base_url: https://api.deepseek.com request_timeout: 600.0 max_retries: 2 @@ -13,12 +13,12 @@ models: temperature: 1.0 supports_vision: true supports_thinking: true -- name: deepseek-v4-flash - display_name: DeepSeek V4 Flash +- name: zai-org/GLM-5-FP8 + display_name: zai-org/GLM-5-FP8 use: langchain_openai:ChatOpenAI - model: deepseek-v4-flash - api_key: sk-e1c22b7931dc446f8b67e57878edd105 - base_url: https://api.deepseek.com + model: zai-org/GLM-5-FP8 + api_key: modalresearch_gWu46FDpVLYZWPVEA3b_2fq8Jw2UJiKMgEm_Rxmn1SA + base_url: https://api.us-west-2.modal.direct/v1 request_timeout: 600.0 max_retries: 2 max_tokens: 4096