diff --git a/examples/server/public_simplechat/readme.md b/examples/server/public_simplechat/readme.md index b5f180de8..6e671711b 100644 --- a/examples/server/public_simplechat/readme.md +++ b/examples/server/public_simplechat/readme.md @@ -9,8 +9,11 @@ This simple web frontend, allows triggering/testing the server's /completions or in a simple way with minimal code from a common code base. And also allows trying to maintain a basic back and forth chatting to an extent. +User can set a system prompt, as well as try and chat with the model over a series of back and forth chat +messages. + NOTE: Given that the idea is for basic minimal testing, it doesnt bother with any model context length and -culling of old messages from the chat. Also currently I havent added input for a system prompt, but may add it. +culling of old messages from the chat. NOTE: It doesnt set any parameters other than temperature for now. However if someone wants they can update the js file as needed. @@ -38,3 +41,11 @@ Once inside * the user input box will be disabled and a working message will be shown in it. * just refresh the page, to reset wrt the chat history and or system prompt and start afresh. + +## Devel note + +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 +have to change port. + diff --git a/examples/server/public_simplechat/simplechat.html b/examples/server/public_simplechat/simplechat.html index 5d5118b21..b37ec84f3 100644 --- a/examples/server/public_simplechat/simplechat.html +++ b/examples/server/public_simplechat/simplechat.html @@ -1,10 +1,13 @@ - + +
Enter the system prompt above, before entering/submitting any user query
Enter your text to the ai assistant below
+Refresh the page to start over fresh