返回提交历史
Modified
g4f/Provider/hf/__init__.py
+1
-1
XFEstudio/gpt4free
Update __init__.py
0325e318
代码差异
1 个文件
+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):