Support "minimal" reasoning effort

This commit is contained in:
gabrii
2025-09-15 10:24:51 +02:00
parent 6c396fd641
commit dab0265142
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ In addition to updating the OpenAI Base URL, you need to:
2. Ensure the toggles for both options are **on**, as shown in the previous image. 2. Ensure the toggles for both options are **on**, as shown in the previous image.
3. Add the custom models called exactly `gpt-high`, `gpt-medium`, and `gpt-low`, as shown in the previous image. You don't need to remove other models. 3. Add the custom models called exactly `gpt-high`, `gpt-medium`, and `gpt-low`, as shown in the previous image. You can also create `gpt-minimal` for minimal reasoning effort. You don't need to remove other models.
<details> <details>
<summary>Additional steps if you face this error: <summary>Additional steps if you face this error:
+2 -2
View File
@@ -234,9 +234,9 @@ class RequestAdapter:
responses_body["stream"] = True responses_body["stream"] = True
reasoning_effort = inbound_model.replace("gpt-", "").lower() reasoning_effort = inbound_model.replace("gpt-", "").lower()
if reasoning_effort not in {"high", "medium", "low"}: if reasoning_effort not in {"high", "medium", "low", "minimal"}:
raise ValueError( raise ValueError(
"Model name must be either gpt-high, gpt-medium, or gpt-low" "Model name must be either gpt-high, gpt-medium, gpt-low, or gpt-minimal"
) )
responses_body["reasoning"] = { responses_body["reasoning"] = {