HanishKVC
6eb1e0fbde
SimpleChat:JS: bottom of element visible, Set focus to user input
...
As the generated text could be multiple lines and occupy more space
that the full scrollable div's vertical space, make the bottom of
the last element (which can be such a generated text) in the div
visible by scrolling.
Ensure that the user input box has focus
2024-05-18 22:59:21 +05:30
HanishKVC
a944ce7cbe
SimpleChat:JS: Try ensure the last entry in chat is visible
...
Needed because now only the chat div is scrollable and not the full
page.
In last commit the chat div size was fixed to 75% vertical height,
so the full page no longer scrolls, so the old bring user-input
element to view wont work, instead now the last element in the
chat div should be brought into view.
2024-05-18 22:23:34 +05:30
HanishKVC
a1a2f36a45
SimpleChat:CSS: Allow for chat div to be scrollable
2024-05-18 22:11:59 +05:30
HanishKVC
ebd5e71295
SimpleChat:CSS: Move style info into its own css file
...
To keep it simple, clean and seperate so that things are not
unnecessarily cluttered.
2024-05-18 17:09:47 +05:30
HanishKVC
65a56e6fdb
SimpleChat: Update the readme file
2024-05-18 03:37:15 +05:30
HanishKVC
0d0a28b4ab
SimpleChat:HTML: Add a style for system role message
2024-05-18 03:31:37 +05:30
HanishKVC
601fedf8c1
SimpleChat: Move handling systemprompt into its own func
2024-05-18 03:19:59 +05:30
HanishKVC
72151aa634
SimpleChat:Alert user if they provide sysprompt late or change it
2024-05-18 03:16:30 +05:30
HanishKVC
884adfd739
SimpleChat: Ignore empty user input, without trimming
2024-05-18 03:07:40 +05:30
HanishKVC
ae52ad1675
SimpleChat:Allow system prompt to be set, if provided before user
2024-05-18 02:59:42 +05:30
HanishKVC
69817fe1de
SimpleChat:HTML: Cleanup/structure UI a bit, Add input for system
2024-05-18 01:40:57 +05:30
HanishKVC
668b98700c
SimpleChat: Add a simple readme file
2024-05-18 01:06:54 +05:30
HanishKVC
b3644172e0
SimpleChat:JS: Force completion mode be single message by default
2024-05-18 00:36:23 +05:30
HanishKVC
aef32d9cc0
SimpleChat:JS: Handle difference in response
...
Try read the assistance response from appropriate field in the
response got.
Also examples/server seems to return the response in a slightly
different field, so try account for that also.
2024-05-18 00:36:23 +05:30
HanishKVC
3e5edbacd6
SimpleChat: Dont submit if already submitted and waiting
...
Also make chat the default selection wrt mode
2024-05-18 00:36:23 +05:30
HanishKVC
9feb58eaa5
SimpleChat: Allow user to select chat or completion mode
2024-05-18 00:36:23 +05:30
HanishKVC
e62087bf3f
SimpleChat:JS: Try trap enter key press wrt input text field
...
So user can either press submit button or press enter key
2024-05-18 00:36:23 +05:30
HanishKVC
29d2d22c02
SimpleChat:sh: Add simple shell script to run python3 http.server
...
So one needs to run the llm server locally
then run this script and access it using a local browser
2024-05-18 00:36:23 +05:30
HanishKVC
ebe330d098
SimpleChat: Move into its own sub directory to avoid confusion
2024-05-18 00:36:23 +05:30