mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
fix(codex): 取消对 openai:compact 端点的 body_rules 修改
Codex 的请求体规则(drop max_output_tokens/temperature/top_p, set store=false 等) 只应作用于 openai:cli, 不应影响 openai:compact 端点。
This commit is contained in:
@@ -40,7 +40,7 @@ def maybe_patch_request_for_codex(
|
||||
"""
|
||||
if (provider_type or "").lower() != ProviderType.CODEX:
|
||||
return request_body
|
||||
if (provider_api_format or "").lower() not in {"openai:cli", "openai:compact"}:
|
||||
if (provider_api_format or "").lower() not in {"openai:cli"}:
|
||||
return request_body
|
||||
if not isinstance(request_body, dict):
|
||||
return request_body
|
||||
|
||||
Reference in New Issue
Block a user