From 22fcc4d1039221163f8601d24bbe6350a960a717 Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Fri, 12 Dec 2025 01:58:38 +0500 Subject: [PATCH] Remove 'none' from GPT-5.2 --- chatmock/reasoning.py | 2 +- chatmock/routes_ollama.py | 1 - chatmock/routes_openai.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chatmock/reasoning.py b/chatmock/reasoning.py index ac6fa96..5b04ac2 100644 --- a/chatmock/reasoning.py +++ b/chatmock/reasoning.py @@ -12,7 +12,7 @@ def allowed_efforts_for_model(model: str | None) -> Set[str]: return DEFAULT_REASONING_EFFORTS normalized = base.split(":", 1)[0] if normalized.startswith("gpt-5.2"): - return {"none", "low", "medium", "high", "xhigh"} + return {"low", "medium", "high", "xhigh"} if normalized.startswith("gpt-5.1-codex-max"): return {"low", "medium", "high", "xhigh"} if normalized.startswith("gpt-5.1"): diff --git a/chatmock/routes_ollama.py b/chatmock/routes_ollama.py index a2b9bec..76f704a 100644 --- a/chatmock/routes_ollama.py +++ b/chatmock/routes_ollama.py @@ -117,7 +117,6 @@ def ollama_tags() -> Response: "gpt-5.2-high", "gpt-5.2-medium", "gpt-5.2-low", - "gpt-5.2-none", "gpt-5-codex-high", "gpt-5-codex-medium", "gpt-5-codex-low", diff --git a/chatmock/routes_openai.py b/chatmock/routes_openai.py index 1e737b2..75a01b1 100644 --- a/chatmock/routes_openai.py +++ b/chatmock/routes_openai.py @@ -534,7 +534,7 @@ def list_models() -> Response: model_groups = [ ("gpt-5", ["high", "medium", "low", "minimal"]), ("gpt-5.1", ["high", "medium", "low"]), - ("gpt-5.2", ["xhigh", "high", "medium", "low", "none"]), + ("gpt-5.2", ["xhigh", "high", "medium", "low"]), ("gpt-5-codex", ["high", "medium", "low"]), ("gpt-5.1-codex", ["high", "medium", "low"]), ("gpt-5.1-codex-max", ["xhigh", "high", "medium", "low"]),