Skip to content

Commit 6ef57cc

Browse files
committed
SimpleChat:Readme updated wrt save and restore chat session info
1 parent 4abcfde commit 6ef57cc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/server/public_simplechat/readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ own system prompts.
1414
This allows seeing the generated text / ai-model response in oneshot at the end, after it is fully generated,
1515
or potentially as it is being generated, in a streamed manner from the server/ai-model.
1616

17+
Auto saves the chat session locally as and when the chat is progressing and inturn at a later time when you
18+
open SimpleChat, option is provided to restore the old chat session, if a matching one exists.
19+
1720
The UI follows a responsive web design so that the layout can adapt to available display space in a usable
1821
enough manner, in general.
1922

@@ -202,10 +205,9 @@ matter clearing site data, dont directly override site caching in all cases. Wor
202205
have to change port. Or in dev tools of browser, you may be able to disable caching fully.
203206

204207

205-
Concept of multiple chat sessions with different servers, as well as saving and restoring of
206-
those across browser usage sessions, can be woven around the SimpleChat/MultiChatUI class and
207-
its instances relatively easily, however given the current goal of keeping this simple, it has
208-
not been added, for now.
208+
Currently the server to communicate with is maintained globally and not as part of a specific
209+
chat session. So if one changes the server ip/url in setting, then all chat sessions will auto
210+
switch to this new server, when you try using those sessions.
209211

210212

211213
By switching between chat.add_system_begin/anytime, one can control whether one can change

0 commit comments

Comments
 (0)