summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Vercel.py5
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)