diff --git a/examples/server/public_simplechat/index.html b/examples/server/public_simplechat/index.html
index 72a91a09b..89b32f3ff 100644
--- a/examples/server/public_simplechat/index.html
+++ b/examples/server/public_simplechat/index.html
@@ -1,7 +1,7 @@
- SimpleChat (LlamaCPP, ...)
+ SimpleChat LlamaCppEtal
diff --git a/examples/server/public_simplechat/readme.md b/examples/server/public_simplechat/readme.md
index 10c49dff2..72a428075 100644
--- a/examples/server/public_simplechat/readme.md
+++ b/examples/server/public_simplechat/readme.md
@@ -68,6 +68,8 @@ Once inside
can use it just for normal completion related/based query.
* If you want to provide a system prompt, then ideally enter it first, before entering any user query.
+ Normally Completion mode doesnt need system prompt, while Chat mode can generate better/interesting
+ responses with a suitable system prompt.
* if chat.add_system_begin is used
* you cant change the system prompt, after it is has been submitted once along with user query.
* you cant set a system prompt, after you have submitted any user query
@@ -91,6 +93,13 @@ Once inside
## Devel note
+gChatRequestOptions maintains the list of options/fields to send along with chat request,
+irrespective of whether /chat/completions or /completions endpoint.
+
+ If you want to add additional options/fields to send to the server/ai-model, and or
+ modify the existing options value, for now you can update this global var using
+ browser's development-tools/console.
+
Sometimes the browser may be stuborn with caching of the file, so your updates to html/css/js
may not be visible. Also remember that just refreshing/reloading page in browser or for that
matter clearing site data, dont directly override site caching in all cases. Worst case you may
@@ -103,3 +112,14 @@ not been added, for now.
By switching between chat.add_system_begin/anytime, one can control whether one can change
the system prompt, anytime during the conversation or only at the beginning.
+
+read_json_early, is to experiment with reading json response data early on, if available,
+so that user can be shown generated data, as and when it is being generated, rather than
+at the end when full data is available.
+
+ the server flow doesnt seem to be sending back data early, atleast for request (inc options)
+ that is currently sent.
+
+ if able to read json data early on in future, as and when ai model is generating data, then
+ this helper needs to indirectly update the chat div with the recieved data, without waiting
+ for the overall data to be available.
diff --git a/examples/server/public_simplechat/simplechat.css b/examples/server/public_simplechat/simplechat.css
index d45f50a95..20c738b12 100644
--- a/examples/server/public_simplechat/simplechat.css
+++ b/examples/server/public_simplechat/simplechat.css
@@ -48,6 +48,13 @@ button {
flex-direction: column;
}
+.ul1 {
+ padding-inline-start: 2vw;
+}
+.ul2 {
+ padding-inline-start: 2vw;
+}
+
* {
margin: 0.6vmin;
}
diff --git a/examples/server/public_simplechat/simplechat.js b/examples/server/public_simplechat/simplechat.js
index 5e7e79fec..2ddab0ec2 100644
--- a/examples/server/public_simplechat/simplechat.js
+++ b/examples/server/public_simplechat/simplechat.js
@@ -14,13 +14,21 @@ class ApiEP {
}
let gUsageMsg = `
-
+
- Set system prompt above, to try control ai response charactersitic, if model supports same.
- - + Completion mode normally wont have a system prompt.
+
+ - Completion mode normally wont have a system prompt.
+
- Enter your query to ai assistant below.
- - + Completion mode doesnt insert user/role: prefix implicitly.
- - + Use shift+enter for inserting enter/newline.
+
+ - Completion mode doesnt insert user/role: prefix implicitly.
+ - Use shift+enter for inserting enter/newline.
+
- Refresh the page to start over fresh.
+
+ - old chat is not culled when sending to server/ai-model.
+ - either use New CHAT, or refresh if chat getting long.
+
`;