mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac: task flag
Co-Authored-By: Michael Poluektov <78477503+michaelpoluektov@users.noreply.github.com>
This commit is contained in:
@@ -89,3 +89,14 @@ class ERROR_MESSAGES(str, Enum):
|
||||
OLLAMA_API_DISABLED = (
|
||||
"The Ollama API is disabled. Please enable it to use this feature."
|
||||
)
|
||||
|
||||
|
||||
class TASKS(str, Enum):
|
||||
def __str__(self) -> str:
|
||||
return super().__str__()
|
||||
|
||||
DEFAULT = lambda task="": f"{task if task else 'default'}"
|
||||
TITLE_GENERATION = "Title Generation"
|
||||
EMOJI_GENERATION = "Emoji Generation"
|
||||
QUERY_GENERATION = "Query Generation"
|
||||
FUNCTION_CALLING = "Function Calling"
|
||||
|
||||
Reference in New Issue
Block a user