fix: Fix typos

This commit is contained in:
Yuta Hayashibe
2024-10-14 16:13:26 +09:00
parent 1294ba9d61
commit 12516c8a45
9 changed files with 10 additions and 10 deletions

View File

@@ -132,7 +132,7 @@
}
},
stderr: (text) => {
console.log('An error occured:', text);
console.log('An error occurred:', text);
if (stderr) {
stderr += `${text}\n`;
} else {

View File

@@ -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();
}
});
}

View File

@@ -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

View File

@@ -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