Skip to content

模型配置及使用问题 #12

Description

@stone0108820

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions