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

XFEstudio/gpt4free

Fix save args

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

代码差异

1 个文件 +1 -1
Modified g4f/Provider/needs_auth/LMArenaBeta.py +1 -1
@@ -343,7 +343,7 @@ class LMArenaBeta(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
343 343 if args:
344 344 debug.log("Save args to cache file:", str(cache_file))
345 345 with cache_file.open("w") as f:
346 f.write(args)
346 f.write(json.dumps(args))
347 347
348 348 def get_content_type(url: str) -> str:
349 349 if url.endswith(".webp"):