mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-09 05:51:01 +08:00
fix: Fix AI model validation and 4h kline storage (PR #337)
- Fix AI model validation failure when editing trader - Fix 4h kline data storage to correct database field - Remove improper model ID conversion in API layer - Resolve conflicts: keep complete model ID and continue on 4h fetch error - Closes NoFxAiOS#335, NoFxAiOS#260
This commit is contained in:
@@ -861,8 +861,7 @@ func (s *Server) handleGetTraderConfig(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// 返回完整的 AIModelID(如 "admin_deepseek"),不要截断
|
||||
// 前端需要完整 ID 来验证模型是否存在
|
||||
// 返回完整的模型ID,不做转換,保持与前端模型列表一致
|
||||
result := map[string]interface{}{
|
||||
"trader_id": traderConfig.ID,
|
||||
"trader_name": traderConfig.Name,
|
||||
|
||||
Reference in New Issue
Block a user