]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : update auto gen files comments [no ci] (#11484)
authorDaniel Bevenius <redacted>
Wed, 29 Jan 2025 15:34:18 +0000 (16:34 +0100)
committerGitHub <redacted>
Wed, 29 Jan 2025 15:34:18 +0000 (16:34 +0100)
* 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 91c36c269bca75b2d08119c653512cd20b4ea2ba ("server : (web ui)
Various improvements, now use vite as bundler (#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.

examples/server/README.md
examples/server/server.cpp

index 5022de672d1f57df5d0eaac0e2044dd39619f51b..e788d8b59bc56c840c168d068d477e942518e17e 100644 (file)
@@ -236,9 +236,13 @@ npm i
 # to run the dev server
 npm run dev
 
-# to build the public/index.html
+# to build the public/index.html.gz
 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:
 
index b1cde2d7f48dd23553c62fc914bf60f55f3981f2..c5efbdb09ac404ad1659e6f7560bfd48745c7682 100644 (file)
@@ -14,7 +14,7 @@
 // mime type for sending response
 #define MIMETYPE_JSON "application/json; charset=utf-8"
 
-// auto generated files (update with ./deps.sh)
+// auto generated files (see README.md for details)
 #include "index.html.gz.hpp"
 #include "loading.html.hpp"