Commit 62cd4633

Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
2024-01-25 00:06:53
feat(client): enable follow redirects by default (#1100)
1 parent f66d33e
Changed files (1)
src
src/openai/_base_client.py
@@ -777,6 +777,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
             proxies=proxies,
             transport=transport,
             limits=limits,
+            follow_redirects=True,
         )
 
     def is_closed(self) -> bool:
@@ -1318,6 +1319,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
             proxies=proxies,
             transport=transport,
             limits=limits,
+            follow_redirects=True,
         )
 
     def is_closed(self) -> bool: