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

XFEstudio/gpt4free

Refactor LMArena provider to generate unique evaluation session IDs; remove redundant assignment

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

代码差异

1 个文件 +2 -2
Modified g4f/Provider/needs_auth/LMArena.py +2 -2
@@ -636,10 +636,10 @@ class LMArena(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
636 636 model_id = cls.image_models[model]
637 637 else:
638 638 raise ModelNotFoundError(f"Model '{model}' is not supported by LMArena provider.")
639
639
640 evaluationSessionId = str(uuid.uuid7())
640 641 userMessageId = str(uuid.uuid7())
641 642 modelAMessageId = str(uuid.uuid7())
642 evaluationSessionId = str(uuid.uuid7())
643 643 data = {
644 644 "id": evaluationSessionId,
645 645 "mode": "direct",