Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d184068

Browse files
danbevmglambda
authored andcommitted
server : update auto gen files comments [no ci] (ggml-org#11484)
* server : update auto gen files comments This commit updates the 'auto generated files' comments in server.cpp and removes `deps.sh` from the comment. The motivation for this change is that `deps.sh` was removed in Commit 91c36c2 ("server : (web ui) Various improvements, now use vite as bundler (ggml-org#10599)"). * squash! server : update auto gen files comments [no ci] Move comments about file generation to README.md. * squash! server : update auto gen files comments [no ci] Remove the comments in server.cpp that mention that information can be found in the README.md file.
1 parent 90410fb commit d184068

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/server/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,13 @@ npm i
236236
# to run the dev server
237237
npm run dev
238238
239-
# to build the public/index.html
239+
# to build the public/index.html.gz
240240
npm run build
241241
```
242+
After `public/index.html.gz` has been generated we need to generate the c++
243+
headers (like build/examples/server/index.html.gz.hpp) that will be included
244+
by server.cpp. This is done by building `llama-server` as described in the
245+
[build](#build) section above.
242246

243247
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:
244248

examples/server/server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// mime type for sending response
1515
#define MIMETYPE_JSON "application/json; charset=utf-8"
1616

17-
// auto generated files (update with ./deps.sh)
17+
// auto generated files (see README.md for details)
1818
#include "index.html.gz.hpp"
1919
#include "loading.html.hpp"
2020

0 commit comments

Comments
 (0)