Commit b0107003 by 1808837298@qq.com

fix: update reasoning effort model suffix parsing

- Modify model suffix parsing to use hyphen-separated suffixes
- Ensure consistent parsing of `-high`, `-medium`, and `-low` reasoning effort indicators
parent 0b2585ed
......@@ -117,11 +117,11 @@ func (a *Adaptor) ConvertRequest(c *gin.Context, info *relaycommon.RelayInfo, re
if strings.HasPrefix(request.Model, "o3") {
request.Temperature = nil
}
if strings.HasSuffix(request.Model, "high") {
if strings.HasSuffix(request.Model, "-high") {
request.ReasoningEffort = "high"
} else if strings.HasSuffix(request.Model, "low") {
} else if strings.HasSuffix(request.Model, "-low") {
request.ReasoningEffort = "low"
} else if strings.HasSuffix(request.Model, "medium") {
} else if strings.HasSuffix(request.Model, "-medium") {
request.ReasoningEffort = "medium"
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment