mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
feat: arena models
This commit is contained in:
@@ -751,6 +751,28 @@ USER_PERMISSIONS = PersistentConfig(
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
ENABLE_EVALUATION_ARENA_MODELS = PersistentConfig(
|
||||
"ENABLE_EVALUATION_ARENA_MODELS",
|
||||
"evaluation.arena.enable",
|
||||
os.environ.get("ENABLE_EVALUATION_ARENA_MODELS", "True").lower() == "true",
|
||||
)
|
||||
EVALUATION_ARENA_MODELS = PersistentConfig(
|
||||
"EVALUATION_ARENA_MODELS",
|
||||
"evaluation.arena.models",
|
||||
[],
|
||||
)
|
||||
|
||||
DEFAULT_ARENA_MODEL = {
|
||||
"id": "arena-model",
|
||||
"name": "Arena Model",
|
||||
"meta": {
|
||||
"profile_image_url": "/favicon.png",
|
||||
"description": "Submit your questions to anonymous AI chatbots and vote on the best response.",
|
||||
"model_ids": None,
|
||||
},
|
||||
}
|
||||
|
||||
ENABLE_MODEL_FILTER = PersistentConfig(
|
||||
"ENABLE_MODEL_FILTER",
|
||||
"model_filter.enable",
|
||||
|
||||
Reference in New Issue
Block a user