mirror of
https://github.com/open-webui/open-webui
synced 2024-11-21 23:57:51 +00:00
fix: Fix typos
This commit is contained in:
parent
1294ba9d61
commit
12516c8a45
@ -1,6 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
# Initialize device type args
|
# 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_CUDA=false
|
||||||
ARG USE_OLLAMA=false
|
ARG USE_OLLAMA=false
|
||||||
# Tested with cu117 for CUDA 11 and cu121 for CUDA 12 (default)
|
# Tested with cu117 for CUDA 11 and cu121 for CUDA 12 (default)
|
||||||
|
@ -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
|
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.
|
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.
|
||||||
|
|
||||||
|
@ -578,7 +578,7 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Initialize data_items to store additional data to be sent to the client
|
# Initialize data_items to store additional data to be sent to the client
|
||||||
# Initalize contexts and citation
|
# Initialize contexts and citation
|
||||||
data_items = []
|
data_items = []
|
||||||
contexts = []
|
contexts = []
|
||||||
citations = []
|
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
|
# 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
|
# - 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
|
# 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")
|
@app.get("/oauth/{provider}/callback")
|
||||||
async def oauth_callback(provider: str, request: Request, response: Response):
|
async def oauth_callback(provider: str, request: Request, response: Response):
|
||||||
if provider not in OAUTH_PROVIDERS:
|
if provider not in OAUTH_PROVIDERS:
|
||||||
|
@ -118,7 +118,7 @@ Navigate to the apache sites-available directory:
|
|||||||
|
|
||||||
`nano models.server.city.conf` # match this with your ollama server domain
|
`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):
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
stderr: (text) => {
|
stderr: (text) => {
|
||||||
console.log('An error occured:', text);
|
console.log('An error occurred:', text);
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
stderr += `${text}\n`;
|
stderr += `${text}\n`;
|
||||||
} else {
|
} else {
|
||||||
|
@ -198,7 +198,7 @@
|
|||||||
saveAs(blob, `${model.id}-${Date.now()}.json`);
|
saveAs(blob, `${model.id}-${Date.now()}.json`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const positionChangeHanlder = async () => {
|
const positionChangeHandler = async () => {
|
||||||
// Get the new order of the models
|
// Get the new order of the models
|
||||||
const modelIds = Array.from(document.getElementById('model-list').children).map((child) =>
|
const modelIds = Array.from(document.getElementById('model-list').children).map((child) =>
|
||||||
child.id.replace('model-item-', '')
|
child.id.replace('model-item-', '')
|
||||||
@ -248,7 +248,7 @@
|
|||||||
animation: 150,
|
animation: 150,
|
||||||
onUpdate: async (event) => {
|
onUpdate: async (event) => {
|
||||||
console.log(event);
|
console.log(event);
|
||||||
positionChangeHanlder();
|
positionChangeHandler();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -444,7 +444,7 @@ const convertOpenAIMessages = (convo) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const validateChat = (chat) => {
|
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;
|
const messages = chat.messages;
|
||||||
|
|
||||||
// Check if messages array is empty
|
// Check if messages array is empty
|
||||||
|
@ -33,7 +33,7 @@ function generateRegexRules(delimiters) {
|
|||||||
const escapedRight = escapeRegex(right);
|
const escapedRight = escapeRegex(right);
|
||||||
|
|
||||||
if (!display) {
|
if (!display) {
|
||||||
// For inline delimiters, we match everyting
|
// For inline delimiters, we match everything
|
||||||
inlinePatterns.push(`${escapedLeft}((?:\\\\[^]|[^\\\\])+?)${escapedRight}`);
|
inlinePatterns.push(`${escapedLeft}((?:\\\\[^]|[^\\\\])+?)${escapedRight}`);
|
||||||
} else {
|
} else {
|
||||||
// Block delimiters doubles as inline delimiters when not followed by a newline
|
// Block delimiters doubles as inline delimiters when not followed by a newline
|
||||||
|
Loading…
Reference in New Issue
Block a user