llama.cpp
SimpleChat: a simple and dumb web front end for testing /chat/completions and /completions end points and try chat
#7350
Merged

SimpleChat: a simple and dumb web front end for testing /chat/completions and /completions end points and try chat #7350

hanishkvc
hanishkvc SimpleChat: Add a skeletal html page
69ecad21
hanishkvc SimpleChat: A js skeleton with SimpleChat class
0402a4b6
hanishkvc SimpleChat: request_json, globals, startme
1d3cc935
hanishkvc SimpleChatJS: Roles Class, submitClick
70e58602
hanishkvc SimpleChat:HTML: Bring in the js file
24d348ab
hanishkvc SimpleChat: Rather value wrt input text element
256e02c7
hanishkvc SimpleChat: Also add completions related prompt
639d647e
hanishkvc SimpleChat: Use common helper logic wrt json data
ce4aaeb6
hanishkvc SimpleChat: Move handling of submit request into its own func
27268a60
hanishkvc SimpleChat: Try handshake with llm over its web service endpoint
33bc67ba
hanishkvc SimpleChat:JS: Extract model response and show to user
c6653479
hanishkvc SimpleChat:JS: Messages/Prompt, indicate working to end user
564469e4
hanishkvc SimpleChat: Try keep input element in view
7d772f6b
hanishkvc SimpleChat: Diff user/assistant msgs, Make input wider
99428512
hanishkvc SimpleChat: Move into its own sub directory to avoid confusion
ebe330d0
hanishkvc SimpleChat:sh: Add simple shell script to run python3 http.server
29d2d22c
hanishkvc SimpleChat:JS: Try trap enter key press wrt input text field
e62087bf
hanishkvc SimpleChat: Allow user to select chat or completion mode
9feb58ea
hanishkvc SimpleChat: Dont submit if already submitted and waiting
3e5edbac
hanishkvc SimpleChat:JS: Handle difference in response
aef32d9c
hanishkvc SimpleChat:JS: Force completion mode be single message by default
b3644172
hanishkvc SimpleChat: Add a simple readme file
668b9870
hanishkvc SimpleChat:HTML: Cleanup/structure UI a bit, Add input for system
69817fe1
hanishkvc SimpleChat:Allow system prompt to be set, if provided before user
ae52ad16
hanishkvc SimpleChat: Ignore empty user input, without trimming
884adfd7
hanishkvc SimpleChat:Alert user if they provide sysprompt late or change it
72151aa6
hanishkvc SimpleChat: Move handling systemprompt into its own func
601fedf8
hanishkvc SimpleChat:HTML: Add a style for system role message
0d0a28b4
hanishkvc SimpleChat: Update the readme file
65a56e6f
hanishkvc
mofosyne mofosyne added testing
mofosyne mofosyne added enhancement
mofosyne mofosyne added Review Complexity : Low
mofosyne mofosyne removed Review Complexity : Low
mofosyne mofosyne added Review Complexity : Medium
hanishkvc SimpleChat:CSS: Move style info into its own css file
ebd5e712
hanishkvc SimpleChat:CSS: Allow for chat div to be scrollable
a1a2f36a
hanishkvc SimpleChat:JS: Try ensure the last entry in chat is visible
a944ce7c
hanishkvc SimpleChat:JS: bottom of element visible, Set focus to user input
6eb1e0fb
hanishkvc SimpleChat: Update notes a bit. Try keep browser happy
5a5f6ab8
github-actions github-actions added examples
github-actions github-actions added server
hanishkvc SimpleChat:HTML:Group user input+btn together; Note about multichat
676053fc
hanishkvc SimpleChat:JS: Allow for changing system prompt anytime for future
7905f2fc
hanishkvc SimpleChat:Readme: Note about handle_systemprompt begin/anytime
5976126c
hanishkvc SimpleChat:HTML: Add viewport meta for better mobile friendliness
c191e475
ggerganov
ggerganov approved these changes on 2024-05-19
hanishkvc SimpleChat:HtmlCss: Cleanup UI flow
c88088c7
hanishkvc SimpleChat: textarea for multiline user chat, inturn shift+enter 4 enter
dfadac78
hanishkvc SimpleChat: Make vertical layout better responsive (flex based)
6597fafe
hanishkvc SimpleChat: Rename simplechat.html to index.html, update readme
e5000cdb
hanishkvc
mofosyne
hanishkvc SimpleChat: Screen fixed view and scrolling, Printing full
3fc607f8
hanishkvc SimpleChat:JS:CI: Avoid space at end of jsdoc param line
af621975
hanishkvc
mofosyne
mofosyne mofosyne marked this pull request as draft 1 year ago
mofosyne mofosyne requested a review from mofosyne mofosyne 1 year ago
hanishkvc SimpleChat:JS: MultiChat initial skeleton
9b97feab
hanishkvc SimpleChat:JS: Move system prompt begin/anytime into SimpleChat
5c1a9f4d
hanishkvc SimpleChat:JS:Keep MultiChatUI simple for now
fcf2af95
hanishkvc SimpleChat:JS: Move handle submit into MultiChat, build on same
8ef1aa97
hanishkvc SimpleChat:JS: Move to dictionary of SimpleChat, instead of array
7be6aeb6
ngxson
hanishkvc SimpleChat: Move ui elements into MultiChatUI, Update el IDs
1cd10ae9
hanishkvc SimpleChat:MCUI:Show available chat sessions, try switch btw them
1b82f228
hanishkvc SimpleChat:MCUI: Store and use current chat session id
928cc364
hanishkvc SimpleChat:MCUI: Delay enabling user-input to avoid race
d57274b2
hanishkvc SimpleChat: Take care of system prompt
7297dda3
hanishkvc SimpleChat:GetSystemLatest, fix a oversight.
3458d2f8
hanishkvc SimpleChat:MCUI: Allow selected chat-session btn to be highlighted
b9f9c0ec
hanishkvc SimpleChat:Cleanup corners
68ef7401
hanishkvc SimpleChat:MCUI: Ensure req-resp failure doesnt lock up things
2a407192
hanishkvc SimpleChat:MCUI: Support for new chat sessions
14083d15
hanishkvc SimpleChat:MCUI: CreateSessionBtn helper, use wrt NewChat
6c712775
hanishkvc SimpleChat:MCUI: NewChat btn first before existing chat sessions
d3405ea0
hanishkvc SimpleChat:MCUI:CornerCases:Skip new chat, show only if current
c2e8d627
hanishkvc SimpleChat: Update readme, title, show usage if no chat to show
fb848b29
hanishkvc SimpleChat: Cleanup the log/dialog messages a bit
1d87c502
hanishkvc
hanishkvc hanishkvc marked this pull request as ready for review 1 year ago
mofosyne
mofosyne
mofosyne approved these changes on 2024-05-22
mofosyne mofosyne added merge ready
mofosyne
hanishkvc
mofosyne
hanishkvc
mofosyne mofosyne merged 1e374365 into master 1 year ago
hanishkvc
mofosyne
hanishkvc
mofosyne
hanishkvc
mofosyne

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone