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

[Maintainability] Conversation Management Library Expansion and Message Sending Library Creation #119

Closed fingerthief closed 6 months ago

fingerthief commented 6 months ago

Summary

This PR tackles mainly the giant chatLayout component and begins the process of thinning it out by moving that majority of the conversation processing functions into the recently created conversations-management library. In the process of those updates a few bugs and logic inconsistencies were fixed as well.

I've also created a new message-sending library that houses all the logic for model determination etc..when a user sends a message. This was a nice chunk of code to remove from chatLayout

Lastly, I've began expanding the Utils library with various functions used in chatLayout.

The resulting changes trim down the chatLayout component by a noticeably amount. Other libraries will need to be created and utilized to continue cleaning the component out in general.

Contents (#119)

Changes


github-actions[bot] commented 6 months ago

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

https://minimalgpt--pr119-dev-general-code-org-yb0j2wa5.web.app

(expires Sat, 25 May 2024 23:13:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 95b9f8da4861f0258375bb9789bfa436b4ed7d98