mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
Support xhigh reasoning effort
This commit is contained in:
parent
ef50c2dfa6
commit
88fc7be8c1
2 changed files with 7 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue