fix typos "prompt-format" -> "prompt-formats"

This commit is contained in:
Yazan Agha-Schrader 2024-05-31 06:31:55 +02:00
parent 80888e93cc
commit bc69a1e977
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ set(PUBLIC_ASSETS
index.js
completion.js
system-prompts.js
prompt-format.js
prompt-formats.js
json-schema-to-grammar.mjs
)
foreach(asset ${PUBLIC_ASSETS})

View file

@ -18,7 +18,7 @@
import { llama } from '/completion.js';
import { SchemaConverter } from '/json-schema-to-grammar.mjs';
import { promptFormats } from './prompt-format.js';
import { promptFormats } from './prompt-formats.js';
import { systemPrompts } from './system-prompts.js'; // multilingual is wip
let selected_image = false;
var slot_id = -1;

View file

@ -30,7 +30,7 @@
#include "index.js.hpp"
#include "completion.js.hpp"
#include "system-prompts.js.hpp"
#include "prompt-format.js.hpp"
#include "prompt-formats.js.hpp"
#include "json-schema-to-grammar.mjs.hpp"
#include <atomic>
@ -3779,7 +3779,7 @@ int main(int argc, char ** argv) {
svr->Get("/theme-snowstorm.css", handle_static_file(theme_snowstorm_css, theme_snowstorm_css_len, "text/css; charset=utf-8"));
svr->Get("/index-new.html", handle_static_file(index_new_html, index_new_html_len, "text/html; charset=utf-8"));
svr->Get("/system-prompts.js", handle_static_file(system_prompts_js, system_prompts_js_len, "text/javascript; charset=utf-8"));
svr->Get("/prompt-format.js", handle_static_file(prompt_format_js, prompt_format_js_len, "text/javascript; charset=utf-8"));
svr->Get("/prompt-formats.js", handle_static_file(prompt_formats_js, prompt_formats_js_len, "text/javascript; charset=utf-8"));
// register API routes
svr->Get ("/health", handle_health);