mirror of
https://github.com/open-webui/open-webui
synced 2024-12-26 05:42:05 +00:00
refac
This commit is contained in:
parent
368e11e2b2
commit
39c2f70778
@ -113,6 +113,6 @@ class TASKS(str, Enum):
|
||||
TAGS_GENERATION = "tags_generation"
|
||||
EMOJI_GENERATION = "emoji_generation"
|
||||
QUERY_GENERATION = "query_generation"
|
||||
AUTOCOMPLETION_GENERATION = "autocompletion_generation"
|
||||
AUTOCOMPLETE_GENERATION = "autocomplete_generation"
|
||||
FUNCTION_CALLING = "function_calling"
|
||||
MOA_RESPONSE_GENERATION = "moa_response_generation"
|
||||
|
@ -2066,7 +2066,7 @@ async def generate_autocompletion(form_data: dict, user=Depends(get_verified_use
|
||||
"messages": [{"role": "user", "content": content}],
|
||||
"stream": False,
|
||||
"metadata": {
|
||||
"task": str(TASKS.AUTOCOMPLETION_GENERATION),
|
||||
"task": str(TASKS.AUTOCOMPLETE_GENERATION),
|
||||
"task_body": form_data,
|
||||
"chat_id": form_data.get("chat_id", None),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user