diff options
author | Abobo <113653079+Abobo8964@users.noreply.github.com> | 2024-03-15 13:30:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 13:30:15 +0100 |
commit | f41efef0aefe84d8ed5765f524dd673095d8627d (patch) | |
tree | 406eeed82c975285cc7cc085ba04b430964b6a93 | |
parent | ~ (diff) | |
download | gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.tar gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.tar.gz gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.tar.bz2 gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.tar.lz gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.tar.xz gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.tar.zst gpt4free-f41efef0aefe84d8ed5765f524dd673095d8627d.zip |
-rw-r--r-- | g4f/Provider/Vercel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g4f/Provider/Vercel.py b/g4f/Provider/Vercel.py index f8faeeaf..26fc5211 100644 --- a/g4f/Provider/Vercel.py +++ b/g4f/Provider/Vercel.py @@ -63,7 +63,10 @@ class Vercel(AbstractProvider): if not response.ok: continue for token in response.iter_content(chunk_size=None): - yield token.decode() + try: + yield token.decode() + except UnicodeDecodeError: + pass break raise_for_status(response) |