@@ -46,7 +46,7 @@ def test_client_default_request_default_retry_attempts
4646 )
4747
4848 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
49- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
49+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
5050 end
5151
5252 assert_requested ( :any , /./ , times : 3 )
@@ -65,7 +65,7 @@ def test_client_given_request_default_retry_attempts
6565 )
6666
6767 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
68- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
68+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
6969 end
7070
7171 assert_requested ( :any , /./ , times : 4 )
@@ -83,7 +83,7 @@ def test_client_default_request_given_retry_attempts
8383 )
8484
8585 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
86- stagehand . sessions . start ( model_name : "openai/gpt-4o " , request_options : { max_retries : 3 } )
86+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " , request_options : { max_retries : 3 } )
8787 end
8888
8989 assert_requested ( :any , /./ , times : 4 )
@@ -102,7 +102,7 @@ def test_client_given_request_given_retry_attempts
102102 )
103103
104104 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
105- stagehand . sessions . start ( model_name : "openai/gpt-4o " , request_options : { max_retries : 4 } )
105+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " , request_options : { max_retries : 4 } )
106106 end
107107
108108 assert_requested ( :any , /./ , times : 5 )
@@ -125,7 +125,7 @@ def test_client_retry_after_seconds
125125 )
126126
127127 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
128- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
128+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
129129 end
130130
131131 assert_requested ( :any , /./ , times : 2 )
@@ -152,7 +152,7 @@ def test_client_retry_after_date
152152
153153 Thread . current . thread_variable_set ( :time_now , time_now )
154154 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
155- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
155+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
156156 end
157157 Thread . current . thread_variable_set ( :time_now , nil )
158158
@@ -177,7 +177,7 @@ def test_client_retry_after_ms
177177 )
178178
179179 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
180- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
180+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
181181 end
182182
183183 assert_requested ( :any , /./ , times : 2 )
@@ -196,7 +196,7 @@ def test_retry_count_header
196196 )
197197
198198 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
199- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
199+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
200200 end
201201
202202 3 . times do
@@ -217,7 +217,7 @@ def test_omit_retry_count_header
217217
218218 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
219219 stagehand . sessions . start (
220- model_name : "openai/gpt-4o " ,
220+ model_name : "openai/gpt-5.4-mini " ,
221221 request_options : { extra_headers : { "x-stainless-retry-count" => nil } }
222222 )
223223 end
@@ -240,7 +240,7 @@ def test_overwrite_retry_count_header
240240
241241 assert_raises ( Stagehand ::Errors ::InternalServerError ) do
242242 stagehand . sessions . start (
243- model_name : "openai/gpt-4o " ,
243+ model_name : "openai/gpt-5.4-mini " ,
244244 request_options : { extra_headers : { "x-stainless-retry-count" => "42" } }
245245 )
246246 end
@@ -268,7 +268,7 @@ def test_client_redirect_307
268268 )
269269
270270 assert_raises ( Stagehand ::Errors ::APIConnectionError ) do
271- stagehand . sessions . start ( model_name : "openai/gpt-4o " , request_options : { extra_headers : { } } )
271+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " , request_options : { extra_headers : { } } )
272272 end
273273
274274 recorded , = WebMock ::RequestRegistry . instance . requested_signatures . hash . first
@@ -303,7 +303,7 @@ def test_client_redirect_303
303303 )
304304
305305 assert_raises ( Stagehand ::Errors ::APIConnectionError ) do
306- stagehand . sessions . start ( model_name : "openai/gpt-4o " , request_options : { extra_headers : { } } )
306+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " , request_options : { extra_headers : { } } )
307307 end
308308
309309 assert_requested ( :get , "http://localhost/redirected" , times : Stagehand ::Client ::MAX_REDIRECTS ) do
@@ -334,7 +334,7 @@ def test_client_redirect_auth_keep_same_origin
334334
335335 assert_raises ( Stagehand ::Errors ::APIConnectionError ) do
336336 stagehand . sessions . start (
337- model_name : "openai/gpt-4o " ,
337+ model_name : "openai/gpt-5.4-mini " ,
338338 request_options : { extra_headers : { "authorization" => "Bearer xyz" } }
339339 )
340340 end
@@ -370,7 +370,7 @@ def test_client_redirect_auth_strip_cross_origin
370370
371371 assert_raises ( Stagehand ::Errors ::APIConnectionError ) do
372372 stagehand . sessions . start (
373- model_name : "openai/gpt-4o " ,
373+ model_name : "openai/gpt-5.4-mini " ,
374374 request_options : { extra_headers : { "authorization" => "Bearer xyz" } }
375375 )
376376 end
@@ -392,7 +392,7 @@ def test_default_headers
392392 model_api_key : "My Model API Key"
393393 )
394394
395- stagehand . sessions . start ( model_name : "openai/gpt-4o " )
395+ stagehand . sessions . start ( model_name : "openai/gpt-5.4-mini " )
396396
397397 assert_requested ( :any , /./ ) do |req |
398398 headers = req . headers . transform_keys ( &:downcase ) . fetch_values ( "accept" , "content-type" )
0 commit comments