From bf78b4d033fd360bf42d22589a3cd670d0e06323 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Sat, 23 Sep 2023 11:33:44 +0100 Subject: ~ | improve Vercel & g4f.Completion.create --- g4f/Provider/Aivvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g4f/Provider/Aivvm.py b/g4f/Provider/Aivvm.py index f7f74f50..97c9dff0 100644 --- a/g4f/Provider/Aivvm.py +++ b/g4f/Provider/Aivvm.py @@ -56,7 +56,7 @@ class Aivvm(BaseProvider): "https://chat.aivvm.com/api/chat", headers=headers, json=json_data, stream=True) for line in response.iter_content(chunk_size=1048): - yield line + yield line.decode('utf-8') @classmethod @property -- cgit v1.2.3