diff --git a/llm/default_plugins/openai_models.py b/llm/default_plugins/openai_models.py index 94c1ffce..d7359039 100644 --- a/llm/default_plugins/openai_models.py +++ b/llm/default_plugins/openai_models.py @@ -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.", @@ -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):