diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-09-26 01:20:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 01:20:27 +0200 |
commit | fd5d28cf7b936855b36b540bb589219b84eea376 (patch) | |
tree | 65f3b7b5c3a15d4681cf07d1bb120489d61072b7 /g4f/Provider/Aivvm.py | |
parent | Merge pull request #940 from hlohaus/myshell (diff) | |
parent | AItianhuSpace Provider with GPT 4 added (diff) | |
download | gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.tar gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.tar.gz gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.tar.bz2 gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.tar.lz gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.tar.xz gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.tar.zst gpt4free-fd5d28cf7b936855b36b540bb589219b84eea376.zip |
Diffstat (limited to 'g4f/Provider/Aivvm.py')
-rw-r--r-- | g4f/Provider/Aivvm.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/Aivvm.py b/g4f/Provider/Aivvm.py index c38c4a74..7a3d57bd 100644 --- a/g4f/Provider/Aivvm.py +++ b/g4f/Provider/Aivvm.py @@ -60,9 +60,10 @@ class Aivvm(BaseProvider): response = requests.post( "https://chat.aivvm.com/api/chat", headers=headers, json=json_data, stream=True) + response.raise_for_status() - for line in response.iter_content(chunk_size=1048): - yield line.decode('utf-8') + for chunk in response.iter_content(chunk_size=None): + yield chunk.decode('utf-8') @classmethod @property |