� ���g����ddlmZGd�dee��ZGd�dee��ZGd�dee��ZGd�d ee��Zd S) �)�Enumc�&�eZdZdd�Zdd�Zdd�ZdS)�MESSAGES�c��|r|nd�S�Nr���msgs �d/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/open_webui/constants.py�<lambda>zMESSAGES.<lambda>���s� 2����4��c��d|�d�S)N� The model 'z' has been added successfully.r ��models r r zMESSAGES.<lambda>s��#V��#V�#V�#V�rc��d|�d�S)Nrz ' has been deleted successfully.r rs r r zMESSAGES.<lambda>s��N�u�N�N�N�rN�r)�__name__� __module__� __qualname__�DEFAULT� MODEL_ADDED� MODEL_DELETEDr rr rrs2������4�4�4�G�V�V�V�K�N�N�N��M�Mrrc��eZdZdd�Zdd�ZdS)�WEBHOOK_MESSAGESrc��|r|nd�Srr r s r r zWEBHOOK_MESSAGES.<lambda> rrc��|rd|��ndS)NzNew user signed up: zNew user signed upr )�usernames r r zWEBHOOK_MESSAGES.<lambda>s��-5�O�)�x�)�)�)�;O�rNr)rrrr� USER_SIGNUPr rr rr s*������4�4�4�G����K�K�Krrc����eZdZdef�fd� Zd0d�ZdZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d0d!�Z#d"Z$d0d#�Z%d0d$�Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d0d+�Z-d,Z.d0d-�Z/d.Z0d/Z1�xZ2S)1�ERROR_MESSAGES�returnc�D��t�����S�N��super�__str__��self� __class__s �r r)zERROR_MESSAGES.__str__�����w�w��� � � rrc�>�|dkrdndt|��zdz�S)NrzSomething went wrong :/z[ERROR: �])�str��errs r r zERROR_MESSAGES.<lambda>s,��s�b�y�y�3�3�j�SV�WZ�S[�S[�F[�^a�Fa�c�rz9Required environment variable not found. Terminating now.z�Oops! Something went wrong while creating your account. Please try again later. If the issue persists, contact support for assistance.zqOops! Something went wrong. We encountered an issue while trying to delete the user. Please give it another shot.zsUh-oh! This email does not match the email your provider is registered with. Please check your email and try again.zrUh-oh! This email is already registered. Sign in with your existing account or choose another email to start anew.zKUh-oh! This username is already registered. Please choose another username.zgUh-oh! The password you entered is too long. Please make sure your password is less than 72 bytes long.zPUh-oh! This command is already registered. Please choose another command string.zCUh-oh! This file is already registered. Please choose another file.zFUh-oh! This id is already registered. Please choose another id string.zRUh-oh! This model id is already registered. Please choose another model id string.zRUh-oh! This name tag is already registered. Please choose another name tag string.zGYour session has expired or the token is invalid. Please sign in again.z]The email or password provided is incorrect. Please check for typos and try logging in again.z�The email format you entered is invalid. Please double-check and make sure you're using a valid email address (e.g., yourname@example.com).zIThe password provided is incorrect. Please check for typos and try again.zbYour provider has not provided a trusted header. Please contact your administrator for assistance.z�You can't turn off authentication because there are existing users. If you want to disable WEBUI_AUTH, make sure your web interface doesn't have any existing users and is a fresh installation.z401 UnauthorizedzeYou do not have permission to access this resource. Please contact your administrator for assistance.z?The requested action has been restricted as a security measure.� FILE_NOT_SENTz�Oops! It seems like the file format you're trying to upload is not supported. Please upload a file with a supported format and try again.z,We could not find what you're looking for :/z�Oops! It looks like there's a hiccup. The API key is missing. Please make sure to provide a valid API key to access this feature.z1Use of API key is not enabled in the environment.z?Unusual activities detected, please try again in a few minutes.zXPandoc is not installed on the server. Please contact your administrator for assistance.c� �d|��S)Nz-Invalid format. Please use the correct formatr r1s r r zERROR_MESSAGES.<lambda>Hs��L�s�L�L�rzAPI rate limit exceededc��d|�d�S)NzModel 'z' was not foundr ��names r r zERROR_MESSAGES.<lambda>Ls��&E��&E�&E�&E�rc��dS)NzOpenAI API was not foundr r6s r r zERROR_MESSAGES.<lambda>Ms��'A�rz!WebUI could not connect to Ollamaz�Oops! Something went wrong while creating your API key. Please try again later. If the issue persists, contact support for assistance.z3API key creation is not allowed in the environment.zbThe content provided is empty. Please ensure that there is text or data present before proceeding.zBThis feature is only available when running with SQLite databases.zIOops! The URL you provided is invalid. Please double-check and try again.c��|r|nd�S)Nz3Oops! Something went wrong while searching the web.r r1s r r zERROR_MESSAGES.<lambda>[s���_�#�#�*_�a�rzAThe Ollama API is disabled. Please enable it to use this feature.c��d|�d�S)Nz\Oops! The file you're trying to upload is too large. Please upload a file that is less than �.r )�sizes r r zERROR_MESSAGES.<lambda>cs��~�w{�~�~�~�rzEDuplicate content detected. Please provide unique content to proceed.zmExtracted content is not available for this file. Please ensure that the file is processed before proceeding.r)3rrrr0r)r�ENV_VAR_NOT_FOUND�CREATE_USER_ERROR�DELETE_USER_ERROR�EMAIL_MISMATCH� EMAIL_TAKEN�USERNAME_TAKEN�PASSWORD_TOO_LONG� COMMAND_TAKEN� FILE_EXISTS�ID_TAKEN�MODEL_ID_TAKEN�NAME_TAG_TAKEN� INVALID_TOKEN� INVALID_CRED�INVALID_EMAIL_FORMAT�INVALID_PASSWORD�INVALID_TRUSTED_HEADER�EXISTING_USERS� UNAUTHORIZED�ACCESS_PROHIBITED�ACTION_PROHIBITEDr3�FILE_NOT_SUPPORTED� NOT_FOUND�USER_NOT_FOUND�API_KEY_NOT_FOUND�API_KEY_NOT_ALLOWED� MALICIOUS�PANDOC_NOT_INSTALLED�INCORRECT_FORMAT�RATE_LIMIT_EXCEEDED�MODEL_NOT_FOUND�OPENAI_NOT_FOUND�OLLAMA_NOT_FOUND�CREATE_API_KEY_ERROR�API_KEY_CREATION_NOT_ALLOWED� EMPTY_CONTENT� DB_NOT_SQLITE� INVALID_URL�WEB_SEARCH_ERROR�OLLAMA_API_DISABLED�FILE_TOO_LARGE�DUPLICATE_CONTENT�FILE_NOT_PROCESSED� __classcell__�r,s@r r#r#s��������!��!�!�!�!�!�!� d�c�c� �T��a��L��K�N�G�K�U��B��f�M�W�K�W�H�i�N�i�N� R��s�L�i��S��B��X�N�%�L���I��$�M�e��>�I�C�N�\��M��Q�I�u��L�L�L��4��E�E�E�O�A�A�A��:��d��#X� �x�M�X�M� T�� b�a�a�� L�� �~�~�� P��I�����rr#c�L��eZdZdef�fd� Zd d�ZdZdZdZdZ d Z d Z d Z d Z �xZS)�TASKSr$c�D��t�����Sr&r'r*s �r r)z TASKS.__str__mr-rrc��|r|nd�S)N� generationr )�tasks r r zTASKS.<lambda>ps���!?���<�A�r�title_generation�tags_generation�emoji_generation�query_generation�image_prompt_generation�autocomplete_generation�function_calling�moa_response_generationr)rrrr0r)r�TITLE_GENERATION�TAGS_GENERATION�EMOJI_GENERATION�QUERY_GENERATION�IMAGE_PROMPT_GENERATION�AUTOCOMPLETE_GENERATION�FUNCTION_CALLING�MOA_RESPONSE_GENERATIONrhris@r rkrklsy�������!��!�!�!�!�!�!�B�A�A�G�)��'�O�)��)��7��7��)��7�����rrkN)�enumrr0rrr#rkr rr �<module>r�s��������������s�D���������s�D����VI�VI�VI�VI�VI�S�$�VI�VI�VI�r 8� 8� 8� 8� 8�C�� 8� 8� 8� 8� 8r
Memory