added "minimal" reasoning option (better for coding)
This commit is contained in:
@@ -85,7 +85,7 @@ def main() -> None:
|
||||
)
|
||||
p_serve.add_argument(
|
||||
"--reasoning-effort",
|
||||
choices=["low", "medium", "high", "none"],
|
||||
choices=["minimal", "low", "medium", "high"],
|
||||
default=os.getenv("CHATGPT_LOCAL_REASONING_EFFORT", "medium").lower(),
|
||||
help="Reasoning effort level for Responses API (default: medium)",
|
||||
)
|
||||
|
||||
@@ -9,7 +9,7 @@ def build_reasoning_param(
|
||||
effort = (base_effort or "").strip().lower()
|
||||
summary = (base_summary or "").strip().lower()
|
||||
|
||||
valid_efforts = {"low", "medium", "high", "none"}
|
||||
valid_efforts = {"minimal", "low", "medium", "high"}
|
||||
valid_summaries = {"auto", "concise", "detailed", "none"}
|
||||
|
||||
if isinstance(overrides, dict):
|
||||
|
||||
@@ -58,7 +58,7 @@ def start_upstream_request(
|
||||
return None, resp
|
||||
|
||||
include: List[str] = []
|
||||
if isinstance(reasoning_param, dict) and reasoning_param.get("effort") != "none":
|
||||
if isinstance(reasoning_param, dict):
|
||||
include.append("reasoning.encrypted_content")
|
||||
|
||||
client_session_id = None
|
||||
|
||||
Reference in New Issue
Block a user