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

XFEstudio/gpt4free

Update files.py

9936c566
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/tools/files.py +1 -1
@@ -585,7 +585,7 @@ async def get_async_streaming(bucket_dir: str, delete_files = False, refine_chun
585 585 yield f'data: {json.dumps({"error": {"message": str(e)}})}\n\n'
586 586 raise e
587 587
588 def get_tempfile(file, suffix):
588 def get_tempfile(file, suffix: str = None):
589 589 copyfile = tempfile.NamedTemporaryFile(suffix=suffix, delete=False)
590 590 shutil.copyfileobj(file, copyfile)
591 591 copyfile.close()