mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-05 18:20:35 -08:00
Refactor LMArena provider to generate unique evaluation session IDs; remove redundant assignment
This commit is contained in:
parent
af56ac0c03
commit
4d98885ec0
1 changed files with 2 additions and 2 deletions
|
|
@ -636,10 +636,10 @@ class LMArena(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
|
|||
model_id = cls.image_models[model]
|
||||
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue