Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions llm/default_plugins/openai_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,12 @@ class ReasoningEffortEnum(str, Enum):
high = "high"


class VerbosityEnum(str, Enum):
low = "low"
medium = "medium"
high = "high"


class OptionsForReasoning(SharedOptions):
json_object: Optional[bool] = Field(
description="Output a valid JSON object {...}. Prompt must mention JSON.",
Expand All @@ -451,6 +457,14 @@ class OptionsForReasoning(SharedOptions):
),
default=None,
)
verbosity: Optional[VerbosityEnum] = Field(
description=(
"Controls the verbosity of the model's response. Currently supported "
"values are low, medium, and high. Low verbosity produces more concise "
"responses, while high verbosity provides more detailed explanations."
),
default=None,
)


def _attachment(attachment):
Expand Down