mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
Fixed: #354
**fix(translator): add support for "xhigh" reasoning effort in OpenAI responses** - Updated handling in `openai_openai-responses_request.go` to include the new "xhigh" reasoning effort level.
This commit is contained in:
@@ -202,6 +202,8 @@ func ConvertOpenAIResponsesRequestToOpenAIChatCompletions(modelName string, inpu
|
|||||||
out, _ = sjson.Set(out, "reasoning_effort", "medium")
|
out, _ = sjson.Set(out, "reasoning_effort", "medium")
|
||||||
case "high":
|
case "high":
|
||||||
out, _ = sjson.Set(out, "reasoning_effort", "high")
|
out, _ = sjson.Set(out, "reasoning_effort", "high")
|
||||||
|
case "xhigh":
|
||||||
|
out, _ = sjson.Set(out, "reasoning_effort", "xhigh")
|
||||||
default:
|
default:
|
||||||
out, _ = sjson.Set(out, "reasoning_effort", "auto")
|
out, _ = sjson.Set(out, "reasoning_effort", "auto")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user