@@ -447,7 +447,7 @@ describe "OpenAI API Client", ->
447447 assert . same " resp_first" , payload. previous_response_id
448448 return 200 , build_response " resp_second" , " Second reply"
449449
450- session = client\ new_response_chat_session { model : " gpt-4.1-mini" }
450+ session = client\ new_responses_chat_session { model : " gpt-4.1-mini" }
451451
452452 first = assert session\ send " Hello"
453453 assert . same " resp_first" , first. id
@@ -487,7 +487,7 @@ describe "OpenAI API Client", ->
487487 status : " completed"
488488 }
489489
490- session = client\ new_response_chat_session { model : " my-custom-model" }
490+ session = client\ new_responses_chat_session { model : " my-custom-model" }
491491 response = assert session\ send " Hello"
492492
493493 assert . same " resp_custom" , response. id
@@ -600,7 +600,7 @@ describe "OpenAI API Client", ->
600600 assert . same " resp_stream" , chunk. response. id
601601 assert . same " Hello world" , chunk. response. output_text
602602
603- session = client\ new_response_chat_session { model : " gpt-4.1-mini" }
603+ session = client\ new_responses_chat_session { model : " gpt-4.1-mini" }
604604 out = assert session\ send " Say hello back" , stream_callback
605605
606606 -- Session returns accumulated text
0 commit comments