Leon-Sander / Local-Multimodal-AI-Chat

GNU General Public License v3.0
136 stars 83 forks source link

Json files are saved in different format in Windows #7

Closed DEVdv2006 closed 9 months ago

DEVdv2006 commented 9 months ago

I am working in windows and here chat session json files are saved in different format,here there is minor difference where element dictionaries don't have key "type" and values "human" or "ai"

Example [ {content:"hi", additional kwargs:{}, example:False}, {content:"hello I am ai Chatbot ", additional kwargs:{}, example: False}, ]

load_chat_history_json() function in utils.py will be affected by this

Leon-Sander commented 9 months ago

I just updated the code to a new version, which saves the chat history into a SQLite database. With that, this problem is circumvented.