Skip to content

Commit 258547c

Browse files
implement base_url prop method for OpenAIResponsesModel
1 parent d78ebc9 commit 258547c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,10 @@ def __init__(
948948

949949
super().__init__(settings=settings, profile=profile or provider.model_profile)
950950

951+
@property
952+
def base_url(self) -> str:
953+
return str(self.client.base_url)
954+
951955
@property
952956
def model_name(self) -> OpenAIModelName:
953957
"""The model name."""

0 commit comments

Comments
 (0)