Skip to content

Commit 2c1b6ef

Browse files
add test for response model init
1 parent 258547c commit 2c1b6ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/models/test_openai.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,18 @@
9494
]
9595

9696

97-
def test_init():
97+
def test_chat_model_init():
9898
m = OpenAIChatModel('gpt-4o', provider=OpenAIProvider(api_key='foobar'))
9999
assert m.base_url == 'https://api.openai.com/v1/'
100100
assert m.client.api_key == 'foobar'
101101
assert m.model_name == 'gpt-4o'
102102

103+
def test_response_model_init():
104+
m = OpenAIResponsesModel('o4-mini-deep-research', provider=OpenAIProvider(api_key='foobar'))
105+
assert m.base_url == 'https://api.openai.com/v1/'
106+
assert m.client.api_key == 'foobar'
107+
assert m.model_name == 'o4-mini-deep-research'
108+
103109

104110
async def test_request_simple_success(allow_model_requests: None):
105111
c = completion_message(

0 commit comments

Comments
 (0)