Update: Merge nofx improvements

- Frontend trading records and UI enhancements
- Optimized AI prompts and decision engine
- Performance analysis and comparison features
- Binance-style UI improvements
This commit is contained in:
tinkle-community
2025-10-28 21:45:28 +08:00
parent b97c5f663f
commit 96b342d481
13 changed files with 1440 additions and 545 deletions

View File

@@ -262,10 +262,13 @@ func callDeepSeekAPIOnce(prompt string) (string, error) {
"content": prompt,
},
},
"temperature": 0.7,
"temperature": 0.5, // 降低temperature以提高JSON格式稳定性
"max_tokens": 2000,
}
// 注意response_format 参数仅 OpenAI 支持DeepSeek/Qwen 不支持
// 我们通过强化 prompt 和后处理来确保 JSON 格式正确
jsonData, err := json.Marshal(requestBody)
if err != nil {
return "", fmt.Errorf("序列化请求失败: %w", err)