Support xhigh reasoning effort

This commit is contained in:
0xallam
2026-04-26 16:03:07 -07:00
parent ef50c2dfa6
commit 88fc7be8c1
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ from pydantic import AliasChoices, Field
from pydantic_settings import BaseSettings, SettingsConfigDict
ReasoningEffort = Literal["low", "medium", "high"]
ReasoningEffort = Literal["none", "minimal", "low", "medium", "high", "xhigh"]
_BASE_CONFIG = SettingsConfigDict(
case_sensitive=False,
+6 -2
View File
@@ -3,7 +3,7 @@
from __future__ import annotations
import json
from typing import Any, Literal
from typing import TYPE_CHECKING, Any
from agents.model_settings import ModelSettings
from openai.types.shared import Reasoning
@@ -11,6 +11,10 @@ from openai.types.shared import Reasoning
from strix.config.models import DEFAULT_MODEL_RETRY
if TYPE_CHECKING:
from strix.config.settings import ReasoningEffort
# Default max_turns budget passed to the SDK runner.
DEFAULT_MAX_TURNS = 500
@@ -106,7 +110,7 @@ def build_scope_context(scan_config: dict[str, Any]) -> dict[str, Any]:
def make_model_settings(
reasoning_effort: Literal["low", "medium", "high"] | None,
reasoning_effort: ReasoningEffort | None,
) -> ModelSettings:
model_settings = ModelSettings(
parallel_tool_calls=False,