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

XFEstudio/gpt4free

Add async_create_function to AnyProvider for improved async generator handling

663f9e25
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -0
Modified g4f/providers/any_provider.py +2 -0
@@ -410,6 +410,8 @@ class AnyProvider(AsyncGeneratorProvider, AnyModelProviderMixin):
410 410 ):
411 411 yield chunk
412 412
413 async_create_function = create_async_generator
414
413 415 # Clean model names function
414 416 def clean_name(name: str) -> str:
415 417 name = name.split("/")[-1].split(":")[0].lower()