From ddb6fa30d9b0a5c0c7a611969c9439b39a597214 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 9 Sep 2023 23:07:00 +0200 Subject: Add CodeLinkAva Provider, Improve test_async.py --- g4f/Provider/OpenaiChat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/Provider/OpenaiChat.py') diff --git a/g4f/Provider/OpenaiChat.py b/g4f/Provider/OpenaiChat.py index c93977ec..cbe886f0 100644 --- a/g4f/Provider/OpenaiChat.py +++ b/g4f/Provider/OpenaiChat.py @@ -34,7 +34,7 @@ class OpenaiChat(AsyncProvider): "https": proxy } if not access_token: - access_token = await cls.get_access_token(cookies) + access_token = await cls.get_access_token(cookies, proxies) headers = { "Accept": "text/event-stream", "Authorization": f"Bearer {access_token}", -- cgit v1.2.3