summaryrefslogtreecommitdiff
path: root/examples/server
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server')
-rw-r--r--examples/server/json.hpp2
-rw-r--r--examples/server/public/completion.js2
-rw-r--r--examples/server/public/index.html6
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/server/json.hpp b/examples/server/json.hpp
index 4d1a37ad..ea945f34 100644
--- a/examples/server/json.hpp
+++ b/examples/server/json.hpp
@@ -11227,7 +11227,7 @@ class binary_reader
}
if (is_ndarray) // ndarray dimensional vector can only contain integers, and can not embed another array
{
- return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, exception_message(input_format, "ndarray dimentional vector is not allowed", "size"), nullptr));
+ return sax->parse_error(chars_read, get_token_string(), parse_error::create(113, chars_read, exception_message(input_format, "ndarray dimensional vector is not allowed", "size"), nullptr));
}
std::vector<size_t> dim;
if (JSON_HEDLEY_UNLIKELY(!get_ubjson_ndarray_size(dim)))
diff --git a/examples/server/public/completion.js b/examples/server/public/completion.js
index b9c44250..c281f0fb 100644
--- a/examples/server/public/completion.js
+++ b/examples/server/public/completion.js
@@ -114,7 +114,7 @@ export async function* llama(prompt, params = {}, config = {}) {
return content;
}
-// Call llama, return an event target that you can subcribe to
+// Call llama, return an event target that you can subscribe to
//
// Example:
//
diff --git a/examples/server/public/index.html b/examples/server/public/index.html
index 175c5247..18a6ccf0 100644
--- a/examples/server/public/index.html
+++ b/examples/server/public/index.html
@@ -238,7 +238,7 @@
cache_prompt: true
})
- /* START: Support for storing prompt templates and parameters in borwser LocalStorage */
+ /* START: Support for storing prompt templates and parameters in browsers LocalStorage */
const local_storage_storageKey = "llamacpp_server_local_storage";
@@ -282,7 +282,7 @@
let importedTemplates = local_storage_getDataAsObject('user_templates')
if (importedTemplates) {
- // saved templates were successfuly imported.
+ // saved templates were successfully imported.
console.log('Processing saved templates and updating default template')
params.value = { ...params.value, image_data: [] };
@@ -303,7 +303,7 @@
}
function userTemplateResetToDefault() {
- console.log('Reseting themplate to default')
+ console.log('Resetting template to default')
selectedUserTemplate.value.name = 'default';
selectedUserTemplate.value.data = savedUserTemplates.value['default'];
}