Skip to content

Deprecate OpenAIModelProfile.openai_supports_sampling_settings in favor of openai_unsupported_model_settings #2721

@DouweM

Description

@DouweM

Description

# TODO(Marcelo): Deprecate this in favor of `openai_unsupported_model_settings`.
openai_supports_sampling_settings: bool = True
"""Turn off to don't send sampling settings like `temperature` and `top_p` to models that don't support them, like OpenAI's o-series reasoning models."""

# TODO(Marcelo): Deprecate this in favor of `openai_unsupported_model_settings`.
sampling_settings = (
model_settings
if OpenAIModelProfile.from_profile(self.profile).openai_supports_sampling_settings
else OpenAIChatModelSettings()
)

References

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions