From 2d00d4046a72123444521d75a02a52602313b40d Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Tue, 18 Jul 2023 00:08:53 +0100 Subject: . --- g4f/Provider/Providers/Theb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f') diff --git a/g4f/Provider/Providers/Theb.py b/g4f/Provider/Providers/Theb.py index 093ea886..a78fb51f 100644 --- a/g4f/Provider/Providers/Theb.py +++ b/g4f/Provider/Providers/Theb.py @@ -21,7 +21,7 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs): cmd = ['python3', f'{path}/helpers/theb.py', config] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - + for line in iter(p.stdout.readline, b''): yield line.decode('utf-8') -- cgit v1.2.3