From a4da030d67bc1bd0affd1cd094291bb398126f36 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Mon, 2 Oct 2023 12:31:28 +0200 Subject: ~ | g4f v-0.1.4.4 release_curl bug --- g4f/__init__.py | 2 +- g4f/requests.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'g4f') diff --git a/g4f/__init__.py b/g4f/__init__.py index 6f6fd416..01481f16 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -5,7 +5,7 @@ from .typing import Any, CreateResult, Union from requests import get logging = False -version = '0.1.4.3' +version = '0.1.4.4' def check_pypi_version(): try: diff --git a/g4f/requests.py b/g4f/requests.py index 4146341e..5dd2f56e 100644 --- a/g4f/requests.py +++ b/g4f/requests.py @@ -97,7 +97,8 @@ class StreamRequest: self.enter.set_result(None) self.queue.put_nowait(None) - self.loop.call_soon(self.session.release_curl, self.curl) + #self.loop.call_soon(self.session.rel, self.curl) + return async def fetch(self) -> StreamResponse: if self.handle: -- cgit v1.2.3