-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
Chat backend #40
Chat backend #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@3coins This looks great! See the comments I left. Also, you should exclude all frontend changes with the exception of src/chat_handler.ts
to minimize merge conflicts. The easiest way to do this would be to run:
git checkout main -- <path-to-file>
For each file that doesn't exist on main
, you will get an error like so:
% git checkout main -- packages/jupyter-ai/src/components/chat.tsx
error: pathspec 'packages/jupyter-ai/src/components/chat.tsx' did not match any file(s) known to git
In which case, you should just run git rm <path-to-file>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 👍
* implement chat UI * WIP: Chat backend * Working version with reply * Working chat backend with websocket * Fixed error * Added types for messages * Aligned with main branch, removed chat UI components. * Removed yarn.lock updates --------- Co-authored-by: David L. Qiu <david@qiu.dev>
* implement chat UI * WIP: Chat backend * Working version with reply * Working chat backend with websocket * Fixed error * Added types for messages * Aligned with main branch, removed chat UI components. * Removed yarn.lock updates --------- Co-authored-by: David L. Qiu <david@qiu.dev>
Summary
This PR incudes the changes for the backend API for the chat feature. There are two main components.
API Details
Consumes and broadcasts messages
Returns message history
Clears the chat history