1、配置Deepseek时,无法准确选择模型,URL有误
2、配置好大模型后八字模块可以使用大模型进行解读,但是“日运”模块显示模型无效。
触发条件:
当用户在「设置 → 自定义模型」配置了 DeepSeek 的 API Key 后:
1)八字模块:检测到 getCustomProvider() 有值 → 走 direct_prepare → 浏览器直连 DeepSeek API → ✅ 成功
2)日运模块:忽略 BYOK 状态 → 硬编码 model: 'deepseek' 调 /api/chat → 服务端 getModelConfigAsync('deepseek') 在 内置模型注册表未找到对应映射 (特别是本地降级模式下 Supabase 不可用时)→ 返回 undefined → ❌ jsonError('无效的模型', 400)
1、配置Deepseek时,无法准确选择模型,URL有误
2、配置好大模型后八字模块可以使用大模型进行解读,但是“日运”模块显示模型无效。
触发条件:
当用户在「设置 → 自定义模型」配置了 DeepSeek 的 API Key 后:
1)八字模块:检测到 getCustomProvider() 有值 → 走 direct_prepare → 浏览器直连 DeepSeek API → ✅ 成功
2)日运模块:忽略 BYOK 状态 → 硬编码 model: 'deepseek' 调 /api/chat → 服务端 getModelConfigAsync('deepseek') 在 内置模型注册表未找到对应映射 (特别是本地降级模式下 Supabase 不可用时)→ 返回 undefined → ❌ jsonError('无效的模型', 400)