Skip to content
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

Add chat tab #75

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Add chat tab #75

wants to merge 7 commits into from

Conversation

csaroff
Copy link

@csaroff csaroff commented May 3, 2023

image

I've been wanting to see a chat interface in nat.dev for a while and decided to try to push this over the line. Big thanks to @max for the excellent scaffolding.

This adds a chat tab to open-playground integrated with AI completions. It also integrates with the history sidebar so that you can refer back to old conversations.

I'm not a frontend expert so the css might be a bit rough around the edges. I also didn't fully flush out the typescript typings that max had started. I figured a minimally working chat tab was better than none, but let me know if there's anything you'd like to see added/changed as a part of this PR.

In the future it might be cool to add:

  1. A "new chat" button in the history sidebar(for now, just refresh the page).
  2. A button to show/hide the chat history.
  3. The ability to edit a previous message and rerun the completion on an old prompt.
  4. Logos/Avatars for the AI models and the user.
  5. Syntax Highlighting for markdown rendered code.
  6. Threads to allow multiple models to answer the same question.
  7. Some type of recursive summarization in case the conversation goes on past the context window.

@csaroff
Copy link
Author

csaroff commented May 5, 2023

@max would love your feedback and blessing if you get a chance to take a look

@max max requested review from AlexanderLourenco and nat May 6, 2023 07:44
@AlexanderLourenco
Copy link
Collaborator

@csaroff Would you mind coming on Discord?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants