You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pydantic_ai_slim/pydantic_ai/profiles/openai.py
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
from __future__ importannotationsas_annotations
2
2
3
3
importre
4
+
importwarnings
4
5
fromcollections.abcimportSequence
5
6
fromdataclassesimportdataclass
6
7
fromtypingimportAny, Literal
@@ -21,7 +22,6 @@ class OpenAIModelProfile(ModelProfile):
21
22
openai_supports_strict_tool_definition: bool=True
22
23
"""This can be set by a provider or user if the OpenAI-"compatible" API doesn't support strict tool definitions."""
23
24
24
-
# TODO(Marcelo): Deprecate this in favor of `openai_unsupported_model_settings`.
25
25
openai_supports_sampling_settings: bool=True
26
26
"""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."""
27
27
@@ -38,6 +38,14 @@ class OpenAIModelProfile(ModelProfile):
0 commit comments