mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
Support xhigh reasoning effort
This commit is contained in:
@@ -26,7 +26,7 @@ from pydantic import AliasChoices, Field
|
|||||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||||
|
|
||||||
|
|
||||||
ReasoningEffort = Literal["low", "medium", "high"]
|
ReasoningEffort = Literal["none", "minimal", "low", "medium", "high", "xhigh"]
|
||||||
|
|
||||||
_BASE_CONFIG = SettingsConfigDict(
|
_BASE_CONFIG = SettingsConfigDict(
|
||||||
case_sensitive=False,
|
case_sensitive=False,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from typing import Any, Literal
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from agents.model_settings import ModelSettings
|
from agents.model_settings import ModelSettings
|
||||||
from openai.types.shared import Reasoning
|
from openai.types.shared import Reasoning
|
||||||
@@ -11,6 +11,10 @@ from openai.types.shared import Reasoning
|
|||||||
from strix.config.models import DEFAULT_MODEL_RETRY
|
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 budget passed to the SDK runner.
|
||||||
DEFAULT_MAX_TURNS = 500
|
DEFAULT_MAX_TURNS = 500
|
||||||
|
|
||||||
@@ -106,7 +110,7 @@ def build_scope_context(scan_config: dict[str, Any]) -> dict[str, Any]:
|
|||||||
|
|
||||||
|
|
||||||
def make_model_settings(
|
def make_model_settings(
|
||||||
reasoning_effort: Literal["low", "medium", "high"] | None,
|
reasoning_effort: ReasoningEffort | None,
|
||||||
) -> ModelSettings:
|
) -> ModelSettings:
|
||||||
model_settings = ModelSettings(
|
model_settings = ModelSettings(
|
||||||
parallel_tool_calls=False,
|
parallel_tool_calls=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user