mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
fix: Fix typos
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
}
|
||||
},
|
||||
stderr: (text) => {
|
||||
console.log('An error occured:', text);
|
||||
console.log('An error occurred:', text);
|
||||
if (stderr) {
|
||||
stderr += `${text}\n`;
|
||||
} else {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user