diff --git a/Dockerfile b/Dockerfile index b7e2ce983..ec879d732 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 # Initialize device type args -# use build args in the docker build commmand with --build-arg="BUILDARG=true" +# use build args in the docker build command with --build-arg="BUILDARG=true" ARG USE_CUDA=false ARG USE_OLLAMA=false # Tested with cu117 for CUDA 11 and cu121 for CUDA 12 (default) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 9bf242381..83251a3a9 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -18,7 +18,7 @@ If you're experiencing connection issues, it’s often due to the WebUI docker c docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main ``` -### Error on Slow Reponses for Ollama +### Error on Slow Responses for Ollama Open WebUI has a default timeout of 5 minutes for Ollama to finish generating the response. If needed, this can be adjusted via the environment variable AIOHTTP_CLIENT_TIMEOUT, which sets the timeout in seconds. diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 5b819d78b..55251dd3e 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -578,7 +578,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware): } # Initialize data_items to store additional data to be sent to the client - # Initalize contexts and citation + # Initialize contexts and citation data_items = [] contexts = [] citations = [] @@ -2277,7 +2277,7 @@ async def oauth_login(provider: str, request: Request): # 2. If OAUTH_MERGE_ACCOUNTS_BY_EMAIL is true, find a user with the email address provided via OAuth # - This is considered insecure in general, as OAuth providers do not always verify email addresses # 3. If there is no user, and ENABLE_OAUTH_SIGNUP is true, create a user -# - Email addresses are considered unique, so we fail registration if the email address is alreayd taken +# - Email addresses are considered unique, so we fail registration if the email address is already taken @app.get("/oauth/{provider}/callback") async def oauth_callback(provider: str, request: Request, response: Response): if provider not in OAUTH_PROVIDERS: diff --git a/docs/apache.md b/docs/apache.md index be07f2345..ebbcc17f4 100644 --- a/docs/apache.md +++ b/docs/apache.md @@ -118,7 +118,7 @@ Navigate to the apache sites-available directory: `nano models.server.city.conf` # match this with your ollama server domain -Add the folloing virtualhost containing this example (modify as needed): +Add the following virtualhost containing this example (modify as needed): ``` diff --git a/src/lib/components/chat/Messages/CodeBlock.svelte b/src/lib/components/chat/Messages/CodeBlock.svelte index 31ed330a7..90e747ce9 100644 --- a/src/lib/components/chat/Messages/CodeBlock.svelte +++ b/src/lib/components/chat/Messages/CodeBlock.svelte @@ -132,7 +132,7 @@ } }, stderr: (text) => { - console.log('An error occured:', text); + console.log('An error occurred:', text); if (stderr) { stderr += `${text}\n`; } else { diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte index 41aeb587d..93184a05a 100644 --- a/src/lib/components/workspace/Models.svelte +++ b/src/lib/components/workspace/Models.svelte @@ -198,7 +198,7 @@ saveAs(blob, `${model.id}-${Date.now()}.json`); }; - const positionChangeHanlder = async () => { + const positionChangeHandler = async () => { // Get the new order of the models const modelIds = Array.from(document.getElementById('model-list').children).map((child) => child.id.replace('model-item-', '') @@ -248,7 +248,7 @@ animation: 150, onUpdate: async (event) => { console.log(event); - positionChangeHanlder(); + positionChangeHandler(); } }); } diff --git a/src/lib/i18n/locales/tk-TM/transaltion.json b/src/lib/i18n/locales/tk-TM/translation.json similarity index 100% rename from src/lib/i18n/locales/tk-TM/transaltion.json rename to src/lib/i18n/locales/tk-TM/translation.json diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index f6df53d38..2061f85f7 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -444,7 +444,7 @@ const convertOpenAIMessages = (convo) => { }; const validateChat = (chat) => { - // Because ChatGPT sometimes has features we can't use like DALL-E or migh have corrupted messages, need to validate + // Because ChatGPT sometimes has features we can't use like DALL-E or might have corrupted messages, need to validate const messages = chat.messages; // Check if messages array is empty diff --git a/src/lib/utils/marked/katex-extension.ts b/src/lib/utils/marked/katex-extension.ts index 7b99187b3..45374f2f3 100644 --- a/src/lib/utils/marked/katex-extension.ts +++ b/src/lib/utils/marked/katex-extension.ts @@ -33,7 +33,7 @@ function generateRegexRules(delimiters) { const escapedRight = escapeRegex(right); if (!display) { - // For inline delimiters, we match everyting + // For inline delimiters, we match everything inlinePatterns.push(`${escapedLeft}((?:\\\\[^]|[^\\\\])+?)${escapedRight}`); } else { // Block delimiters doubles as inline delimiters when not followed by a newline