Repository navigation
Commit 5e692ce
committed
fix(goal): ai_goal_plan 客户端构造改用 Provider 存储——401 密钥无效根治(REQ-254)
- 根因:from_settings 只读旧字段(SiliconFlow 默认端点 + SILICONFLOW_API_KEY),
用户配置的 Provider Store 默认 Provider(DeepSeek 链:端点/模型/密钥)被完全绕过
→ 以错误端点+空密钥调用 → HTTP 401
- 修复:与精修同口径 from_settings_with_store(resolve_default_provider_key +
ai_providers 存储);Provider 未配置时回退旧字段(兼容迁移态,行为同精修)1 parent b91a13d commit 5e692ce
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
143 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| |||
0 commit comments