From d9396ef56cd4872d048560799a1e31c791c15b27 Mon Sep 17 00:00:00 2001 From: hex2077 Date: Sun, 8 Mar 2026 21:36:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(openai):=20=E4=BF=AE=E5=A4=8D=E6=8E=A8?= =?UTF-8?q?=E7=90=86=E5=8A=AA=E5=8A=9B=E5=8F=82=E6=95=B0=E5=9C=A8=E5=BF=AB?= =?UTF-8?q?=E9=80=9F=E6=A8=A1=E5=9E=8B=E4=B8=8A=E7=9A=84=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当使用快速模型时,始终使用默认的推理努力值,而不是从请求体中读取。这确保了快速模型的一致性行为。 --- VERSION | 2 +- src/providers/openai/codex-core.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index eea29b8..41fe9f3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.10.8.4 +2.10.9 diff --git a/src/providers/openai/codex-core.js b/src/providers/openai/codex-core.js index 82e5cb9..5bf42ea 100644 --- a/src/providers/openai/codex-core.js +++ b/src/providers/openai/codex-core.js @@ -380,7 +380,7 @@ export class CodexApiService { service_tier: cleanedBody.service_tier || defaultServiceTier, reasoning: { ...cleanedBody.reasoning, - effort: cleanedBody.reasoning?.effort || defaultReasoningEffort + effort: isFastModel ? defaultReasoningEffort : cleanedBody.reasoning?.effort }, stream, prompt_cache_key: cache.id