Skip to content

Commit 6596079

Browse files
stainless-app[bot]kaikato
authored andcommitted
fix: replace ava with leah
1 parent 9920637 commit 6596079

File tree

4 files changed

+37
-37
lines changed

4 files changed

+37
-37
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 9
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lmnt-kaikato-aryp6r%2Flmnt-com-cd6e35232b72c91b7c58a77e81bc12247f69f118ebfe24ee5b6bad5d59683ff6.yml
3-
openapi_spec_hash: 657b7065d43bc0c630785b37195ff1e6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lmnt-kaikato-aryp6r%2Flmnt-com-827123076176f4f90fe4bd0edfd38c6060c27a8266a249138a8bbd1f0340c411.yml
3+
openapi_spec_hash: d46d69263715343fadacfedddde95b86
44
config_hash: ad76a808facacf5f53e58d591653bac6

.sync_state

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19a70f2d3733fb0c101046c37e116227f6f594f0
1+
032105e41bd630ca3d0284654538b9065fa7c6ac

tests/api_resources/test_speech.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_method_convert(self, client: Lmnt, respx_mock: MockRouter) -> None:
3333
respx_mock.post("/v1/ai/speech/convert").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
3434
speech = client.speech.convert(
3535
audio=b"raw file contents",
36-
voice="ava",
36+
voice="leah",
3737
)
3838
assert speech.is_closed
3939
assert speech.json() == {"foo": "bar"}
@@ -46,7 +46,7 @@ def test_method_convert_with_all_params(self, client: Lmnt, respx_mock: MockRout
4646
respx_mock.post("/v1/ai/speech/convert").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
4747
speech = client.speech.convert(
4848
audio=b"raw file contents",
49-
voice="ava",
49+
voice="leah",
5050
format="aac",
5151
language="auto",
5252
sample_rate=8000,
@@ -63,7 +63,7 @@ def test_raw_response_convert(self, client: Lmnt, respx_mock: MockRouter) -> Non
6363

6464
speech = client.speech.with_raw_response.convert(
6565
audio=b"raw file contents",
66-
voice="ava",
66+
voice="leah",
6767
)
6868

6969
assert speech.is_closed is True
@@ -77,7 +77,7 @@ def test_streaming_response_convert(self, client: Lmnt, respx_mock: MockRouter)
7777
respx_mock.post("/v1/ai/speech/convert").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
7878
with client.speech.with_streaming_response.convert(
7979
audio=b"raw file contents",
80-
voice="ava",
80+
voice="leah",
8181
) as speech:
8282
assert not speech.is_closed
8383
assert speech.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -94,7 +94,7 @@ def test_method_generate(self, client: Lmnt, respx_mock: MockRouter) -> None:
9494
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
9595
speech = client.speech.generate(
9696
text="hello world.",
97-
voice="ava",
97+
voice="leah",
9898
)
9999
assert speech.is_closed
100100
assert speech.json() == {"foo": "bar"}
@@ -107,7 +107,7 @@ def test_method_generate_with_all_params(self, client: Lmnt, respx_mock: MockRou
107107
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
108108
speech = client.speech.generate(
109109
text="hello world.",
110-
voice="ava",
110+
voice="leah",
111111
format="aac",
112112
language="auto",
113113
model="blizzard",
@@ -128,7 +128,7 @@ def test_raw_response_generate(self, client: Lmnt, respx_mock: MockRouter) -> No
128128

129129
speech = client.speech.with_raw_response.generate(
130130
text="hello world.",
131-
voice="ava",
131+
voice="leah",
132132
)
133133

134134
assert speech.is_closed is True
@@ -142,7 +142,7 @@ def test_streaming_response_generate(self, client: Lmnt, respx_mock: MockRouter)
142142
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
143143
with client.speech.with_streaming_response.generate(
144144
text="hello world.",
145-
voice="ava",
145+
voice="leah",
146146
) as speech:
147147
assert not speech.is_closed
148148
assert speech.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -157,15 +157,15 @@ def test_streaming_response_generate(self, client: Lmnt, respx_mock: MockRouter)
157157
def test_method_generate_detailed(self, client: Lmnt) -> None:
158158
speech = client.speech.generate_detailed(
159159
text="hello world.",
160-
voice="ava",
160+
voice="leah",
161161
)
162162
assert_matches_type(SpeechGenerateDetailedResponse, speech, path=["response"])
163163

164164
@parametrize
165165
def test_method_generate_detailed_with_all_params(self, client: Lmnt) -> None:
166166
speech = client.speech.generate_detailed(
167167
text="hello world.",
168-
voice="ava",
168+
voice="leah",
169169
format="aac",
170170
language="auto",
171171
model="blizzard",
@@ -181,7 +181,7 @@ def test_method_generate_detailed_with_all_params(self, client: Lmnt) -> None:
181181
def test_raw_response_generate_detailed(self, client: Lmnt) -> None:
182182
response = client.speech.with_raw_response.generate_detailed(
183183
text="hello world.",
184-
voice="ava",
184+
voice="leah",
185185
)
186186

187187
assert response.is_closed is True
@@ -193,7 +193,7 @@ def test_raw_response_generate_detailed(self, client: Lmnt) -> None:
193193
def test_streaming_response_generate_detailed(self, client: Lmnt) -> None:
194194
with client.speech.with_streaming_response.generate_detailed(
195195
text="hello world.",
196-
voice="ava",
196+
voice="leah",
197197
) as response:
198198
assert not response.is_closed
199199
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -215,7 +215,7 @@ async def test_method_convert(self, async_client: AsyncLmnt, respx_mock: MockRou
215215
respx_mock.post("/v1/ai/speech/convert").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
216216
speech = await async_client.speech.convert(
217217
audio=b"raw file contents",
218-
voice="ava",
218+
voice="leah",
219219
)
220220
assert speech.is_closed
221221
assert await speech.json() == {"foo": "bar"}
@@ -228,7 +228,7 @@ async def test_method_convert_with_all_params(self, async_client: AsyncLmnt, res
228228
respx_mock.post("/v1/ai/speech/convert").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
229229
speech = await async_client.speech.convert(
230230
audio=b"raw file contents",
231-
voice="ava",
231+
voice="leah",
232232
format="aac",
233233
language="auto",
234234
sample_rate=8000,
@@ -245,7 +245,7 @@ async def test_raw_response_convert(self, async_client: AsyncLmnt, respx_mock: M
245245

246246
speech = await async_client.speech.with_raw_response.convert(
247247
audio=b"raw file contents",
248-
voice="ava",
248+
voice="leah",
249249
)
250250

251251
assert speech.is_closed is True
@@ -259,7 +259,7 @@ async def test_streaming_response_convert(self, async_client: AsyncLmnt, respx_m
259259
respx_mock.post("/v1/ai/speech/convert").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
260260
async with async_client.speech.with_streaming_response.convert(
261261
audio=b"raw file contents",
262-
voice="ava",
262+
voice="leah",
263263
) as speech:
264264
assert not speech.is_closed
265265
assert speech.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -276,7 +276,7 @@ async def test_method_generate(self, async_client: AsyncLmnt, respx_mock: MockRo
276276
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
277277
speech = await async_client.speech.generate(
278278
text="hello world.",
279-
voice="ava",
279+
voice="leah",
280280
)
281281
assert speech.is_closed
282282
assert await speech.json() == {"foo": "bar"}
@@ -289,7 +289,7 @@ async def test_method_generate_with_all_params(self, async_client: AsyncLmnt, re
289289
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
290290
speech = await async_client.speech.generate(
291291
text="hello world.",
292-
voice="ava",
292+
voice="leah",
293293
format="aac",
294294
language="auto",
295295
model="blizzard",
@@ -310,7 +310,7 @@ async def test_raw_response_generate(self, async_client: AsyncLmnt, respx_mock:
310310

311311
speech = await async_client.speech.with_raw_response.generate(
312312
text="hello world.",
313-
voice="ava",
313+
voice="leah",
314314
)
315315

316316
assert speech.is_closed is True
@@ -324,7 +324,7 @@ async def test_streaming_response_generate(self, async_client: AsyncLmnt, respx_
324324
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(200, json={"foo": "bar"}))
325325
async with async_client.speech.with_streaming_response.generate(
326326
text="hello world.",
327-
voice="ava",
327+
voice="leah",
328328
) as speech:
329329
assert not speech.is_closed
330330
assert speech.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -339,15 +339,15 @@ async def test_streaming_response_generate(self, async_client: AsyncLmnt, respx_
339339
async def test_method_generate_detailed(self, async_client: AsyncLmnt) -> None:
340340
speech = await async_client.speech.generate_detailed(
341341
text="hello world.",
342-
voice="ava",
342+
voice="leah",
343343
)
344344
assert_matches_type(SpeechGenerateDetailedResponse, speech, path=["response"])
345345

346346
@parametrize
347347
async def test_method_generate_detailed_with_all_params(self, async_client: AsyncLmnt) -> None:
348348
speech = await async_client.speech.generate_detailed(
349349
text="hello world.",
350-
voice="ava",
350+
voice="leah",
351351
format="aac",
352352
language="auto",
353353
model="blizzard",
@@ -363,7 +363,7 @@ async def test_method_generate_detailed_with_all_params(self, async_client: Asyn
363363
async def test_raw_response_generate_detailed(self, async_client: AsyncLmnt) -> None:
364364
response = await async_client.speech.with_raw_response.generate_detailed(
365365
text="hello world.",
366-
voice="ava",
366+
voice="leah",
367367
)
368368

369369
assert response.is_closed is True
@@ -375,7 +375,7 @@ async def test_raw_response_generate_detailed(self, async_client: AsyncLmnt) ->
375375
async def test_streaming_response_generate_detailed(self, async_client: AsyncLmnt) -> None:
376376
async with async_client.speech.with_streaming_response.generate_detailed(
377377
text="hello world.",
378-
voice="ava",
378+
voice="leah",
379379
) as response:
380380
assert not response.is_closed
381381
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/test_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter, clien
699699
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=httpx.TimeoutException("Test timeout error"))
700700

701701
with pytest.raises(APITimeoutError):
702-
client.speech.with_streaming_response.generate(text="hello world.", voice="ava").__enter__()
702+
client.speech.with_streaming_response.generate(text="hello world.", voice="leah").__enter__()
703703

704704
assert _get_open_connections(self.client) == 0
705705

@@ -709,7 +709,7 @@ def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter, client
709709
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(500))
710710

711711
with pytest.raises(APIStatusError):
712-
client.speech.with_streaming_response.generate(text="hello world.", voice="ava").__enter__()
712+
client.speech.with_streaming_response.generate(text="hello world.", voice="leah").__enter__()
713713
assert _get_open_connections(self.client) == 0
714714

715715
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
@@ -738,7 +738,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
738738

739739
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=retry_handler)
740740

741-
response = client.speech.with_raw_response.generate(text="hello world.", voice="ava")
741+
response = client.speech.with_raw_response.generate(text="hello world.", voice="leah")
742742

743743
assert response.retries_taken == failures_before_success
744744
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@@ -761,7 +761,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
761761
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=retry_handler)
762762

763763
response = client.speech.with_raw_response.generate(
764-
text="hello world.", voice="ava", extra_headers={"x-stainless-retry-count": Omit()}
764+
text="hello world.", voice="leah", extra_headers={"x-stainless-retry-count": Omit()}
765765
)
766766

767767
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@@ -786,7 +786,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
786786
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=retry_handler)
787787

788788
response = client.speech.with_raw_response.generate(
789-
text="hello world.", voice="ava", extra_headers={"x-stainless-retry-count": "42"}
789+
text="hello world.", voice="leah", extra_headers={"x-stainless-retry-count": "42"}
790790
)
791791

792792
assert response.http_request.headers.get("x-stainless-retry-count") == "42"
@@ -1496,7 +1496,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter,
14961496
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=httpx.TimeoutException("Test timeout error"))
14971497

14981498
with pytest.raises(APITimeoutError):
1499-
await async_client.speech.with_streaming_response.generate(text="hello world.", voice="ava").__aenter__()
1499+
await async_client.speech.with_streaming_response.generate(text="hello world.", voice="leah").__aenter__()
15001500

15011501
assert _get_open_connections(self.client) == 0
15021502

@@ -1506,7 +1506,7 @@ async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter,
15061506
respx_mock.post("/v1/ai/speech/bytes").mock(return_value=httpx.Response(500))
15071507

15081508
with pytest.raises(APIStatusError):
1509-
await async_client.speech.with_streaming_response.generate(text="hello world.", voice="ava").__aenter__()
1509+
await async_client.speech.with_streaming_response.generate(text="hello world.", voice="leah").__aenter__()
15101510
assert _get_open_connections(self.client) == 0
15111511

15121512
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
@@ -1536,7 +1536,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
15361536

15371537
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=retry_handler)
15381538

1539-
response = await client.speech.with_raw_response.generate(text="hello world.", voice="ava")
1539+
response = await client.speech.with_raw_response.generate(text="hello world.", voice="leah")
15401540

15411541
assert response.retries_taken == failures_before_success
15421542
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@@ -1562,7 +1562,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
15621562
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=retry_handler)
15631563

15641564
response = await client.speech.with_raw_response.generate(
1565-
text="hello world.", voice="ava", extra_headers={"x-stainless-retry-count": Omit()}
1565+
text="hello world.", voice="leah", extra_headers={"x-stainless-retry-count": Omit()}
15661566
)
15671567

15681568
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@@ -1588,7 +1588,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
15881588
respx_mock.post("/v1/ai/speech/bytes").mock(side_effect=retry_handler)
15891589

15901590
response = await client.speech.with_raw_response.generate(
1591-
text="hello world.", voice="ava", extra_headers={"x-stainless-retry-count": "42"}
1591+
text="hello world.", voice="leah", extra_headers={"x-stainless-retry-count": "42"}
15921592
)
15931593

15941594
assert response.http_request.headers.get("x-stainless-retry-count") == "42"

0 commit comments

Comments
 (0)