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

XFEstudio/gpt4free

Update LMArena provider

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

代码差异

1 个文件 +4 -0
Modified g4f/Provider/needs_auth/LMArenaBeta.py +4 -0
@@ -340,6 +340,10 @@ class LMArenaBeta(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
340 340 yield "\n" * 10
341 341 yield "<!--"
342 342 yield json.dumps(args)
343 if args:
344 debug.log("Save args to cache file:", str(cache_file))
345 with cache_file.open("w") as f:
346 f.write(args)
343 347
344 348 def get_content_type(url: str) -> str:
345 349 if url.endswith(".webp"):