Skip to content

Commit

Permalink
Requests never time out
Browse files Browse the repository at this point in the history
  • Loading branch information
abersheeran committed Nov 28, 2024
1 parent c692793 commit 3f79134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fish_audio_sdk/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ def init_async_client(self):
self._async_client = httpx.AsyncClient(
base_url=self._base_url,
headers={"Authorization": f"Bearer {self._apikey}"},
timeout=None,
)

def init_sync_client(self):
self._sync_client = httpx.Client(
base_url=self._base_url,
headers={"Authorization": f"Bearer {self._apikey}"},
timeout=None,
)

async def __aenter__(self):
Expand Down

0 comments on commit 3f79134

Please sign in to comment.