@@ -41,7 +41,7 @@ func TestUserAgentHeader(t *testing.T) {
4141 }),
4242 )
4343 client .Sessions .Start (context .Background (), stagehand.SessionStartParams {
44- ModelName : "gpt-4o " ,
44+ ModelName : "openai/ gpt-5-nano " ,
4545 })
4646 if userAgent != fmt .Sprintf ("Stagehand/Go %s" , internal .PackageVersion ) {
4747 t .Errorf ("Expected User-Agent to be correct, but got: %#v" , userAgent )
@@ -69,7 +69,7 @@ func TestRetryAfter(t *testing.T) {
6969 }),
7070 )
7171 _ , err := client .Sessions .Start (context .Background (), stagehand.SessionStartParams {
72- ModelName : "gpt-4o " ,
72+ ModelName : "openai/ gpt-5-nano " ,
7373 })
7474 if err == nil {
7575 t .Error ("Expected there to be a cancel error" )
@@ -108,7 +108,7 @@ func TestDeleteRetryCountHeader(t *testing.T) {
108108 option .WithHeaderDel ("X-Stainless-Retry-Count" ),
109109 )
110110 _ , err := client .Sessions .Start (context .Background (), stagehand.SessionStartParams {
111- ModelName : "gpt-4o " ,
111+ ModelName : "openai/ gpt-5-nano " ,
112112 })
113113 if err == nil {
114114 t .Error ("Expected there to be a cancel error" )
@@ -142,7 +142,7 @@ func TestOverwriteRetryCountHeader(t *testing.T) {
142142 option .WithHeader ("X-Stainless-Retry-Count" , "42" ),
143143 )
144144 _ , err := client .Sessions .Start (context .Background (), stagehand.SessionStartParams {
145- ModelName : "gpt-4o " ,
145+ ModelName : "openai/ gpt-5-nano " ,
146146 })
147147 if err == nil {
148148 t .Error ("Expected there to be a cancel error" )
@@ -175,7 +175,7 @@ func TestRetryAfterMs(t *testing.T) {
175175 }),
176176 )
177177 _ , err := client .Sessions .Start (context .Background (), stagehand.SessionStartParams {
178- ModelName : "gpt-4o " ,
178+ ModelName : "openai/ gpt-5-nano " ,
179179 })
180180 if err == nil {
181181 t .Error ("Expected there to be a cancel error" )
@@ -202,7 +202,7 @@ func TestContextCancel(t *testing.T) {
202202 cancelCtx , cancel := context .WithCancel (context .Background ())
203203 cancel ()
204204 _ , err := client .Sessions .Start (cancelCtx , stagehand.SessionStartParams {
205- ModelName : "gpt-4o " ,
205+ ModelName : "openai/ gpt-5-nano " ,
206206 })
207207 if err == nil {
208208 t .Error ("Expected there to be a cancel error" )
@@ -226,7 +226,7 @@ func TestContextCancelDelay(t *testing.T) {
226226 cancelCtx , cancel := context .WithTimeout (context .Background (), 2 * time .Millisecond )
227227 defer cancel ()
228228 _ , err := client .Sessions .Start (cancelCtx , stagehand.SessionStartParams {
229- ModelName : "gpt-4o " ,
229+ ModelName : "openai/ gpt-5-nano " ,
230230 })
231231 if err == nil {
232232 t .Error ("expected there to be a cancel error" )
@@ -256,7 +256,7 @@ func TestContextDeadline(t *testing.T) {
256256 }),
257257 )
258258 _ , err := client .Sessions .Start (deadlineCtx , stagehand.SessionStartParams {
259- ModelName : "gpt-4o " ,
259+ ModelName : "openai/ gpt-5-nano " ,
260260 })
261261 if err == nil {
262262 t .Error ("expected there to be a deadline error" )
0 commit comments