From 62cd46330374c8ec0db9821b1e967fa87fde3c29 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:06:53 +0100 Subject: [PATCH] feat(client): enable follow redirects by default (#1100) --- src/openai/_base_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openai/_base_client.py b/src/openai/_base_client.py index 43fad0603d..7a1562461f 100644 --- a/src/openai/_base_client.py +++ b/src/openai/_base_client.py @@ -777,6 +777,7 @@ def __init__( proxies=proxies, transport=transport, limits=limits, + follow_redirects=True, ) def is_closed(self) -> bool: @@ -1318,6 +1319,7 @@ def __init__( proxies=proxies, transport=transport, limits=limits, + follow_redirects=True, ) def is_closed(self) -> bool: