fix(prompt):Decision failure in specific scenarios|特定场景下的决策失效 #318
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description | 描述
English:
Currently, the leverage ratio configuration between BTC/ETH and mainstream coins is inconsistent. When only BTC is opened as a position, the large model will return the opening leverage ratio of other new positions to be the same as the current position of BTC, resulting in the opening failure (the prompt did not explicitly provide the information about the current leverage ratio configuration).
中文:
当前BTC/ETH与主流币杠杆倍数配置不一致并且开仓只有BTC时,大模型会返回其他新开仓币种的开仓倍数与当前持仓BTC倍数一致,导致开仓失败(prompt中未明确提示当前配置的杠杆倍数的信息)。
🎯 Type of Change | 变更类型
📋 Changes Made | 具体变更
English:
中文:
🧪 Testing | 测试
Manual Testing | 手动测试
Test Environment | 测试环境
Test Results | 测试结果
📸 Screenshots / Demo | 截图/演示
Before | 变更前:
{
"symbol": "ETHUSDT",
"leverage": 8,
...
},
{
"symbol": "BNBUSDT",
"leverage": 8, // ❌ exceed the limit|超过限制
...
}
After | 变更后:
{
"symbol": "ETHUSDT",
"leverage": 8,
...
},
{
"symbol": "BNBUSDT",
"leverage": 4, // ✅ Compliant with the restrictions|符合限制
...
}
✅ Checklist | 检查清单
Code Quality | 代码质量
go build/npm run build)go fmt(for Go code) | 我已运行go fmt(Go 代码)npm run lint(for frontend code) | 我已运行npm run lint(前端代码)Testing | 测试
Documentation | 文档
Git
feat:,fix:, etc.)devbranch | 我已将分支 rebase 到最新的dev分支🔒 Security Considerations | 安全考虑
⚡ Performance Impact | 性能影响
🌐 Internationalization | 国际化
📋 PR Size Estimate | PR 大小估计
By submitting this PR, I confirm that:
提交此 PR,我确认: