mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 13:00:52 +08:00
Add candidate count parameter to OpenAI request
This commit is contained in:
@@ -77,6 +77,11 @@ func ConvertGeminiRequestToOpenAI(modelName string, inputRawJSON []byte, stream
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Candidate count (OpenAI 'n' parameter)
|
||||||
|
if candidateCount := genConfig.Get("candidateCount"); candidateCount.Exists() {
|
||||||
|
out, _ = sjson.Set(out, "n", candidateCount.Int())
|
||||||
|
}
|
||||||
|
|
||||||
// Convert thinkingBudget to reasoning_effort
|
// Convert thinkingBudget to reasoning_effort
|
||||||
// Always perform conversion to support allowCompat models that may not be in registry
|
// Always perform conversion to support allowCompat models that may not be in registry
|
||||||
if thinkingConfig := genConfig.Get("thinkingConfig"); thinkingConfig.Exists() && thinkingConfig.IsObject() {
|
if thinkingConfig := genConfig.Get("thinkingConfig"); thinkingConfig.Exists() && thinkingConfig.IsObject() {
|
||||||
|
|||||||
Reference in New Issue
Block a user