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