Skip to content

Commit d325b7c

Browse files
feat(client): enable follow redirects by default (#1100)
1 parent fdf8742 commit d325b7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openai/_base_client.py

+2
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ def __init__(
777777
proxies=proxies,
778778
transport=transport,
779779
limits=limits,
780+
follow_redirects=True,
780781
)
781782

782783
def is_closed(self) -> bool:
@@ -1318,6 +1319,7 @@ def __init__(
13181319
proxies=proxies,
13191320
transport=transport,
13201321
limits=limits,
1322+
follow_redirects=True,
13211323
)
13221324

13231325
def is_closed(self) -> bool:

0 commit comments

Comments
 (0)