squash! server : update auto gen files comments [no ci]
Move comments about file generation to README.md.
This commit is contained in:
parent
2eead75fba
commit
6d21abfc20
2 changed files with 6 additions and 2 deletions
|
@ -236,9 +236,13 @@ npm i
|
||||||
# to run the dev server
|
# to run the dev server
|
||||||
npm run dev
|
npm run dev
|
||||||
|
|
||||||
# to build the public/index.html
|
# to build the public/index.html.gz
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
|
After `public/index.html.gz` has been generated we need to generate the c++
|
||||||
|
headers (like build/examples/server/index.html.gz.hpp) that will be included
|
||||||
|
by server.cpp. This is done by building `llama-server` as described in the
|
||||||
|
[build](#build) section above.
|
||||||
|
|
||||||
NOTE: if you are using the vite dev server, you can change the API base URL to llama.cpp. To do that, run this code snippet in browser's console:
|
NOTE: if you are using the vite dev server, you can change the API base URL to llama.cpp. To do that, run this code snippet in browser's console:
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
// mime type for sending response
|
// mime type for sending response
|
||||||
#define MIMETYPE_JSON "application/json; charset=utf-8"
|
#define MIMETYPE_JSON "application/json; charset=utf-8"
|
||||||
|
|
||||||
// auto generated files update by:
|
// auto generated files
|
||||||
// $ npm run build --prefix examples/server/webui (updates examples/server/public/index.html.gz)
|
// $ npm run build --prefix examples/server/webui (updates examples/server/public/index.html.gz)
|
||||||
// $ cmake --build build --target llama-server (generates build/examples/server/index.html.gz.hpp)
|
// $ cmake --build build --target llama-server (generates build/examples/server/index.html.gz.hpp)
|
||||||
#include "index.html.gz.hpp"
|
#include "index.html.gz.hpp"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue