@@ -27,8 +27,8 @@ def test_method_create(self, client: OpenAI, respx_mock: MockRouter) -> None:
2727 respx_mock .post ("/audio/speech" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
2828 speech = client .audio .speech .create (
2929 input = "string" ,
30- model = "string " ,
31- voice = "string " ,
30+ model = "tts-1 " ,
31+ voice = "alloy " ,
3232 )
3333 assert isinstance (speech , _legacy_response .HttpxBinaryResponseContent )
3434 assert speech .json () == {"foo" : "bar" }
@@ -39,8 +39,8 @@ def test_method_create_with_all_params(self, client: OpenAI, respx_mock: MockRou
3939 respx_mock .post ("/audio/speech" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
4040 speech = client .audio .speech .create (
4141 input = "string" ,
42- model = "string " ,
43- voice = "string " ,
42+ model = "tts-1 " ,
43+ voice = "alloy " ,
4444 instructions = "instructions" ,
4545 response_format = "mp3" ,
4646 speed = 0.25 ,
@@ -56,8 +56,8 @@ def test_raw_response_create(self, client: OpenAI, respx_mock: MockRouter) -> No
5656
5757 response = client .audio .speech .with_raw_response .create (
5858 input = "string" ,
59- model = "string " ,
60- voice = "string " ,
59+ model = "tts-1 " ,
60+ voice = "alloy " ,
6161 )
6262
6363 assert response .is_closed is True
@@ -71,8 +71,8 @@ def test_streaming_response_create(self, client: OpenAI, respx_mock: MockRouter)
7171 respx_mock .post ("/audio/speech" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
7272 with client .audio .speech .with_streaming_response .create (
7373 input = "string" ,
74- model = "string " ,
75- voice = "string " ,
74+ model = "tts-1 " ,
75+ voice = "alloy " ,
7676 ) as response :
7777 assert not response .is_closed
7878 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -94,8 +94,8 @@ async def test_method_create(self, async_client: AsyncOpenAI, respx_mock: MockRo
9494 respx_mock .post ("/audio/speech" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
9595 speech = await async_client .audio .speech .create (
9696 input = "string" ,
97- model = "string " ,
98- voice = "string " ,
97+ model = "tts-1 " ,
98+ voice = "alloy " ,
9999 )
100100 assert isinstance (speech , _legacy_response .HttpxBinaryResponseContent )
101101 assert speech .json () == {"foo" : "bar" }
@@ -106,8 +106,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncOpenAI, re
106106 respx_mock .post ("/audio/speech" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
107107 speech = await async_client .audio .speech .create (
108108 input = "string" ,
109- model = "string " ,
110- voice = "string " ,
109+ model = "tts-1 " ,
110+ voice = "alloy " ,
111111 instructions = "instructions" ,
112112 response_format = "mp3" ,
113113 speed = 0.25 ,
@@ -123,8 +123,8 @@ async def test_raw_response_create(self, async_client: AsyncOpenAI, respx_mock:
123123
124124 response = await async_client .audio .speech .with_raw_response .create (
125125 input = "string" ,
126- model = "string " ,
127- voice = "string " ,
126+ model = "tts-1 " ,
127+ voice = "alloy " ,
128128 )
129129
130130 assert response .is_closed is True
@@ -138,8 +138,8 @@ async def test_streaming_response_create(self, async_client: AsyncOpenAI, respx_
138138 respx_mock .post ("/audio/speech" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
139139 async with async_client .audio .speech .with_streaming_response .create (
140140 input = "string" ,
141- model = "string " ,
142- voice = "string " ,
141+ model = "tts-1 " ,
142+ voice = "alloy " ,
143143 ) as response :
144144 assert not response .is_closed
145145 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments