fingerthief / minimal-chat

MinimalChat is a lightweight, open-source chat application that allows you to interact with various large language models.
https://minimalchat.app
MIT License
143 stars 19 forks source link

Enhance File Management with IndexedDB Storage and Improve Speech Detection #145

Closed fingerthief closed 5 months ago

fingerthief commented 5 months ago

PR Summary

This pull request introduces significant enhancements to the application's file handling and speech detection capabilities. The key features include the implementation of Browser IndexedDB storage for user-uploaded files and the integration of built-in events for speech detection.

Key Points

  1. IndexedDB Storage for User Files:

    • Implemented a base solution for saving user-uploaded files to the browser's IndexedDB storage.
    • Introduced a new StoredFilesList component accessible from the top left of the side panel.
    • The StoredFilesList component displays all currently stored user files in the database.
    • Users can click on a file to add its content to the conversation context.
    • Users can delete files from storage directly from the StoredFilesList component.
  2. Improved Speech Detection:

    • Updated the application to utilize built-in events for speech detection.
    • Replaced the previous manual polling method with more efficient built-in events.

These enhancements aim to improve the user experience by providing better file management and more reliable speech detection.

New StoredFilesList Component (WIP)

image

Auto Generated Notes (Do Not Change)


Contents (#145)

Uncategorised!

github-actions[bot] commented 5 months ago

Visit the preview URL for this PR (updated for commit a71cef3):

https://minimalgpt--pr145-dev-replaced-manual-i06soeu1.web.app

(expires Mon, 10 Jun 2024 01:57:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 95b9f8da4861f0258375bb9789bfa436b4ed7d98