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

XFEstudio/gpt4free

Update __init__.py

0325e318
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/hf/__init__.py +1 -1
@@ -36,7 +36,7 @@ class HuggingFace(AsyncGeneratorProvider, ProviderModelMixin):
36 36 messages: Messages,
37 37 **kwargs
38 38 ) -> AsyncResult:
39 if "tools" not in kwargs and "images" not in kwargs and "deepseek" in model or random.random() >= 0.5:
39 if "tools" not in kwargs and "images" not in kwargs and random.random() >= 0.5:
40 40 try:
41 41 is_started = False
42 42 async for chunk in HuggingFaceInference.create_async_generator(model, messages, **kwargs):