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

Store chat history with stream update #56

Merged
merged 10 commits into from
Jul 11, 2024

Conversation

ushinnary
Copy link
Contributor

Rework of chat history feature, including :

  • New route for stream chat with history included (thanks to @ZBcheng for example)
  • New possibility to clear history
    • clear_messages_for_id
    • clear_all_messages
  • ChatId may now accept String and &str
  • Added test for chat stream with history
  • If message has no content or images, it will not be stored
    • Updated tests for this part
  • Removed async history

ushinnary and others added 8 commits May 5, 2024 07:00
Accept String and &str for history_id

Fix tests errors missed
Using code suggested by ZBcheng
Going back to idea to store responses on success only
Remove async history
Added tests
Improve tests coverage and history management
src/generation/chat/mod.rs Outdated Show resolved Hide resolved
@pepperoni21 pepperoni21 merged commit c5f6928 into pepperoni21:master Jul 11, 2024
2 checks passed
@ushinnary ushinnary deleted the store_chat_history_update branch July 13, 2024 17:40
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.

4 participants