XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update PerplexityLabs.py

fixed GeneratorExit exception

d0e80e50
Parth Sadaria <146802298+Parthsadaria@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -2
Modified g4f/Provider/PerplexityLabs.py +3 -2
@@ -88,5 +88,6 @@ class PerplexityLabs(AsyncGeneratorProvider, ProviderModelMixin):
88 88 if data["final"]:
89 89 yield FinishReason("stop")
90 90 break
91 except:
92 raise RuntimeError(f"Message: {message}")
91 except Exception as e:
92 print(f"Error processing message: {message} - {e}")
93 raise RuntimeError(f"Message: {message}") from e