diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | g4f/Provider/Vercel.py | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -21,6 +21,7 @@ docker pull hlohaus789/g4f ## 🆕 What's New +- Check out a more in depth local inference @ https://github.com/gpt4free/gpt4local - Join our Telegram Channel: [t.me/g4f_channel](https://telegram.me/g4f_channel) - Join our Discord Group: [discord.gg/XfybzPXPH5](https://discord.gg/XfybzPXPH5) - `g4f` now supports 100% local inference: [local-docs](https://g4f.mintlify.app/docs/core/usage/local) 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) |