-
Notifications
You must be signed in to change notification settings - Fork 3
Add embeddable chat widget for QP assistants #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Standalone vanilla JS/CSS widget that can be dropped into any website: - Configurable for any QP assistant - Markdown rendering (headers, lists, tables, code blocks) - Streaming responses - Suggested questions - Resizable window - Mobile responsive - Dark mode support (auto-detects theme) - Persistent chat history
|
@neuromechanist I don't see configuration option to point to router to use more advanced model, like could be seen e.g. on |
|
Yes, that with BYOK could be an easy add. Chat is meant to be simple, not more complicated than a regular search of the specifications. IMO,changing the model and adding key can add significant hurdles, to go get an open router key to change the model (aside from experimentation). Also it is only good for one session as the key is not sticky. |
|
WDYT @magland ? I would love to arrive at some easily pluggable one so we start using it for ReproNim |
|
I must have missed this PR. Should I merge? |
|
Only if you like it I guess or may be you see how to improve or should we build on top of that? I would have liked to
|
|
and there is also crafted by @copilot for @bendichter which is at large trying to achieve the same, and Ben mentions the need for some way ideally to make such assistant to persist across pages... is there an easy way for that at the session level? |
|
@yarikoptic our solution for this was to just open a new window. It doesn't look as nice but it's much more functional. |
|
@neuromechanist how feasible would be to add some icon (arrow, window) which would just open that dialog (ideally with prior history) in a new window "full screen"? |
- Add pop-out icon and button in chat header - Implement openPopout() that opens chat in new window with fullscreen mode - Embed CSS and JS inline in popup for reliable loading - Add fullscreen mode styles - Chat history persists via shared localStorage - Update README with pop-out documentation




Summary
Adds a standalone, embeddable chat widget that can be dropped into any website to provide AI chat functionality using QP backend.
Features
data-bs-theme,data-theme, or.darkclass)Files Added
embed/qp-chat-widget.js- Main widget codeembed/qp-chat-widget.css- Widget stylesembed/README.md- Usage documentationembed/examples/basic.html- Basic usage example:Usage Example
Real-World Usage
This widget is already deployed on https://www.hedtags.org/ as the HED Assistant chat widget.
Test Plan