Skip to content

Commit 0eb5908

Browse files
authored
Update default timeout and bump version (elevenlabs#596)
1 parent 1deffc2 commit 0eb5908

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "elevenlabs"
33

44
[tool.poetry]
55
name = "elevenlabs"
6-
version = "v2.8.0"
6+
version = "v2.8.1"
77
description = ""
88
readme = "README.md"
99
authors = []

src/elevenlabs/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ElevenLabs(BaseElevenLabs):
3131
3232
- api_key: typing.Optional[str].
3333
34-
- timeout: typing.Optional[float]. The timeout to be used, in seconds, for requests by default the timeout is 60 seconds.
34+
- timeout: typing.Optional[float]. The timeout to be used, in seconds, for requests by default the timeout is 240 seconds.
3535
3636
- httpx_client: typing.Optional[httpx.Client]. The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
3737
---
@@ -47,7 +47,7 @@ def __init__(
4747
base_url: typing.Optional[str] = None,
4848
environment: ElevenLabsEnvironment = ElevenLabsEnvironment.PRODUCTION,
4949
api_key: typing.Optional[str] = os.getenv("ELEVENLABS_API_KEY"),
50-
timeout: typing.Optional[float] = 60,
50+
timeout: typing.Optional[float] = 240,
5151
httpx_client: typing.Optional[httpx.Client] = None
5252
):
5353
super().__init__(
@@ -74,7 +74,7 @@ class AsyncElevenLabs(AsyncBaseElevenLabs):
7474
7575
- api_key: typing.Optional[str].
7676
77-
- timeout: typing.Optional[float]. The timeout to be used, in seconds, for requests by default the timeout is 60 seconds.
77+
- timeout: typing.Optional[float]. The timeout to be used, in seconds, for requests by default the timeout is 240 seconds.
7878
7979
- httpx_client: typing.Optional[httpx.AsyncClient]. The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
8080
---
@@ -91,7 +91,7 @@ def __init__(
9191
base_url: typing.Optional[str] = None,
9292
environment: ElevenLabsEnvironment = ElevenLabsEnvironment.PRODUCTION,
9393
api_key: typing.Optional[str] = os.getenv("ELEVENLABS_API_KEY"),
94-
timeout: typing.Optional[float] = 60,
94+
timeout: typing.Optional[float] = 240,
9595
httpx_client: typing.Optional[httpx.AsyncClient] = None
9696
):
9797
super().__init__(

src/elevenlabs/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def __init__(self, *, api_key: typing.Optional[str] = None, base_url: str, timeo
1414

1515
def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
17-
"User-Agent": "elevenlabs/v2.8.0",
17+
"User-Agent": "elevenlabs/v2.8.1",
1818
"X-Fern-Language": "Python",
1919
"X-Fern-SDK-Name": "elevenlabs",
20-
"X-Fern-SDK-Version": "v2.8.0",
20+
"X-Fern-SDK-Version": "v2.8.1",
2121
}
2222
if self._api_key is not None:
2323
headers["xi-api-key"] = self._api_key

0 commit comments

Comments
 (0)