diff --git a/examples/server/CMakeLists.txt b/examples/server/CMakeLists.txt index c5b4bebf1..dab709619 100644 --- a/examples/server/CMakeLists.txt +++ b/examples/server/CMakeLists.txt @@ -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}) diff --git a/examples/server/public/index-new.html b/examples/server/public/index-new.html index 6625c440f..d571c2779 100644 --- a/examples/server/public/index-new.html +++ b/examples/server/public/index-new.html @@ -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; diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 4ab56df6a..fc6d90848 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -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 @@ -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);