Skip to content

Commit fc9727c

Browse files
committed
added "minimal" reasoning option (better for coding)
1 parent 8129b62 commit fc9727c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ curl http://127.0.0.1:8000/v1/chat/completions \
9393

9494
### Thinking effort
9595

96-
- `--reasoning-effort` (choice of low,medium,high)<br>
96+
- `--reasoning-effort` (choice of minimal,low,medium,high)<br>
9797
GPT-5 has a configurable amount of "effort" it can put into thinking, which may cause it to take more time for a response to return, but may overall give a smarter answer. Applying this parameter after `serve` forces the server to use this reasoning effort by default, unless overrided by the API request with a different effort set. The default reasoning effort without setting this parameter is `medium`.
9898

9999
### Thinking summaries

chatmock/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def main() -> None:
8585
)
8686
p_serve.add_argument(
8787
"--reasoning-effort",
88-
choices=["low", "medium", "high", "none"],
88+
choices=["minimal", "low", "medium", "high"],
8989
default=os.getenv("CHATGPT_LOCAL_REASONING_EFFORT", "medium").lower(),
9090
help="Reasoning effort level for Responses API (default: medium)",
9191
)

chatmock/reasoning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def build_reasoning_param(
99
effort = (base_effort or "").strip().lower()
1010
summary = (base_summary or "").strip().lower()
1111

12-
valid_efforts = {"low", "medium", "high", "none"}
12+
valid_efforts = {"minimal", "low", "medium", "high"}
1313
valid_summaries = {"auto", "concise", "detailed", "none"}
1414

1515
if isinstance(overrides, dict):

chatmock/upstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def start_upstream_request(
5858
return None, resp
5959

6060
include: List[str] = []
61-
if isinstance(reasoning_param, dict) and reasoning_param.get("effort") != "none":
61+
if isinstance(reasoning_param, dict):
6262
include.append("reasoning.encrypted_content")
6363

6464
client_session_id = None

gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def __init__(self) -> None:
298298
opts.setVerticalSpacing(8)
299299
opts.addWidget(QtWidgets.QLabel("Reasoning Effort"), 0, 0)
300300
self.effort = QtWidgets.QComboBox()
301-
self.effort.addItems(["low", "medium", "high", "none"]) # default medium
301+
self.effort.addItems(["minimal", "low", "medium", "high"]) # default medium
302302
self.effort.setCurrentText("medium")
303303
self.effort.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
304304
self.effort.setMinimumContentsLength(7)

0 commit comments

Comments
 (0)