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

This commit is contained in:
hlohaus 2025-11-02 09:02:31 +01:00
parent af56ac0c03
commit 4d98885ec0

View file

@ -637,9 +637,9 @@ class LMArena(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
else:
raise ModelNotFoundError(f"Model '{model}' is not supported by LMArena provider.")
evaluationSessionId = str(uuid.uuid7())
userMessageId = str(uuid.uuid7())
modelAMessageId = str(uuid.uuid7())
evaluationSessionId = str(uuid.uuid7())
data = {
"id": evaluationSessionId,
"mode": "direct",