fix: Fix Deepseek compatibility issues on the official website. (#1166)

* fix: Compatible with the HTTP2 stream transmission bug on DeepSeek's official website endpoint.
* fix: Remove reasoning from JSON
This commit is contained in:
SkywalkerJi
2025-12-04 20:19:48 +09:00
committed by GitHub
parent 1dab5ef2ee
commit 010676c591
4 changed files with 13 additions and 17 deletions

View File

@@ -153,8 +153,7 @@ BTC broke support, MACD death cross, volume increased...
"position_size_usd": 5000,
"stop_loss": 97000,
"take_profit": 91000,
"confidence": 85,
"reasoning": "Bearish technical turn"
"confidence": 85
}
]
```
@@ -462,8 +461,7 @@ Your analysis...
"stop_loss": 97000,
"take_profit": 91000,
"confidence": 85,
"risk_usd": 300,
"reasoning": "Bearish technical"
"risk_usd": 300
}
]
```
@@ -500,14 +498,14 @@ Your analysis...
{
"symbol": "BTCUSDT",
"action": "open_long", // Open long
"reasoning": "This is a great long opportunity because..." // Too long
"confidence": 80 // Only necessary fields
}
// Correct
{
"symbol": "BTCUSDT",
"action": "open_long",
"reasoning": "MACD golden cross + volume surge"
"confidence": 85
}
```

View File

@@ -153,8 +153,7 @@ BTC 跌破支撑位MACD 死叉,成交量放大...
"position_size_usd": 5000,
"stop_loss": 97000,
"take_profit": 91000,
"confidence": 85,
"reasoning": "技术面转空"
"confidence": 85
}
]
```
@@ -462,8 +461,7 @@ AI 必须按照以下格式输出决策:
"stop_loss": 97000,
"take_profit": 91000,
"confidence": 85,
"risk_usd": 300,
"reasoning": "技术面转空"
"risk_usd": 300
}
]
```
@@ -500,14 +498,14 @@ AI 必须按照以下格式输出决策:
{
"symbol": "BTCUSDT",
"action": "open_long", // 开多仓
"reasoning": "这是一个很好的做多机会,因为..." // 太长
"confidence": 80 // 只需要必要字段
}
// 正确
{
"symbol": "BTCUSDT",
"action": "open_long",
"reasoning": "MACD金叉+成交量放大"
"confidence": 85
}
```