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

feat: show / hide past conversations before the current session #153

Merged
merged 8 commits into from
Dec 4, 2023

Conversation

shibbas
Copy link
Contributor

@shibbas shibbas commented Nov 29, 2023

Purpose

  • Adds the option to view the past N conversations and include them in the chat API context for generation. Addresses [frontend] save user chat history  #100
  • Fixed the bug where the chat thread was not being sent for requests in the context

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[X] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code
npm run test:playwright

What to Check

Verify that the following are valid

  • Chat history button shows up for chat, but not ask
  • Chat history is preserved in the localstorage as an example
  • History is included in the context for the chat.

Other Information

@shibbas shibbas changed the title Feat/chat history feat: show / hide past conversations before the current session Nov 30, 2023
@shibbas shibbas marked this pull request as ready for review November 30, 2023 04:55
@shibbas shibbas changed the base branch from develop to chore/refactor-chat-controller November 30, 2023 05:02
@shibbas shibbas linked an issue Dec 1, 2023 that may be closed by this pull request
@sinedied sinedied merged commit fba3466 into chore/refactor-chat-controller Dec 4, 2023
1 check passed
@sinedied sinedied deleted the feat/chat-history branch December 4, 2023 08:21
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.

[frontend] save user chat history
2 participants