mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
fix(proxy): avoid settings override and nested reasoning for openai-compat
This commit is contained in:
1 parent
8ccf193fd4
commit
1c91c46326
4 files changed
+5
-17
No files matched your search
@@ -362,7 +362,7 @@ function transformToolChoice(
|
||||
function mapThinkingToReasoning(
|
||||
thinking: AnthropicThinking | undefined,
|
||||
outputConfig: AnthropicOutputConfig | undefined
|
||||
): Pick<ProxyOpenAIRequest, 'reasoning' | 'reasoning_effort'> {
|
||||
): Pick<ProxyOpenAIRequest, 'reasoning_effort'> {
|
||||
if (!thinking || thinking.type === 'disabled') {
|
||||
return {};
|
||||
}
|
||||
@@ -371,10 +371,6 @@ function mapThinkingToReasoning(
|
||||
const effort = toOpenAIEffort(resolveOutputConfigEffort(outputConfig) ?? 'high');
|
||||
return {
|
||||
reasoning_effort: effort,
|
||||
reasoning: {
|
||||
enabled: true,
|
||||
effort,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -389,10 +385,6 @@ function mapThinkingToReasoning(
|
||||
|
||||
return {
|
||||
reasoning_effort: effort,
|
||||
reasoning: {
|
||||
enabled: true,
|
||||
effort,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user