fix typos "prompt-format" -> "prompt-formats"
This commit is contained in:
parent
80888e93cc
commit
bc69a1e977
3 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ set(PUBLIC_ASSETS
|
||||||
index.js
|
index.js
|
||||||
completion.js
|
completion.js
|
||||||
system-prompts.js
|
system-prompts.js
|
||||||
prompt-format.js
|
prompt-formats.js
|
||||||
json-schema-to-grammar.mjs
|
json-schema-to-grammar.mjs
|
||||||
)
|
)
|
||||||
foreach(asset ${PUBLIC_ASSETS})
|
foreach(asset ${PUBLIC_ASSETS})
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
import { llama } from '/completion.js';
|
import { llama } from '/completion.js';
|
||||||
import { SchemaConverter } from '/json-schema-to-grammar.mjs';
|
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
|
import { systemPrompts } from './system-prompts.js'; // multilingual is wip
|
||||||
let selected_image = false;
|
let selected_image = false;
|
||||||
var slot_id = -1;
|
var slot_id = -1;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "index.js.hpp"
|
#include "index.js.hpp"
|
||||||
#include "completion.js.hpp"
|
#include "completion.js.hpp"
|
||||||
#include "system-prompts.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 "json-schema-to-grammar.mjs.hpp"
|
||||||
|
|
||||||
#include <atomic>
|
#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("/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("/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("/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
|
// register API routes
|
||||||
svr->Get ("/health", handle_health);
|
svr->Get ("/health", handle_health);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue