From 33687740aa52f388adf59bb33cdfa41900b8ede5 Mon Sep 17 00:00:00 2001 From: yym68686 Date: Tue, 26 Sep 2023 23:09:52 +0800 Subject: fixed bug: ImportError: cannot import name 'Request' from 'curl_cffi.requests.cookies' (/Users/yanyuming/opt/anaconda3/envs/chatgpt/lib/python3.11/site-packages/curl_cffi/requests/cookies.py) --- g4f/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f') diff --git a/g4f/requests.py b/g4f/requests.py index 51d31e1e..e6fd1b0a 100644 --- a/g4f/requests.py +++ b/g4f/requests.py @@ -7,7 +7,7 @@ from aiohttp import StreamReader from aiohttp.base_protocol import BaseProtocol from curl_cffi.requests import AsyncSession as BaseSession -from curl_cffi.requests.cookies import Request, Response +from curl_cffi.requests import Request, Response class StreamResponse: -- cgit v1.2.3