diff --git a/backend/open_webui/constants.py b/backend/open_webui/constants.py index d25353f0e..c5fdfabfb 100644 --- a/backend/open_webui/constants.py +++ b/backend/open_webui/constants.py @@ -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" diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index b25ebbda1..177bded66 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -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), },