Leon-Sander / Local-Multimodal-AI-Chat

GNU General Public License v3.0
124 stars 73 forks source link

no such table: messages #13

Closed JTMarsh556 closed 6 months ago

JTMarsh556 commented 6 months ago

I was following along with the video but I started to have issues with the chat history section and specifically with json. I decided to just copy the files and try to run it as I will admit I am new to all of this.

Anyhow, when I run it get the error below.

File "C:\xxxxx\database_operations.py", line 96, in get_all_chat_history_ids cursor.execute(query) sqlite3.OperationalError: no such table: messages

Leon-Sander commented 6 months ago

The code in the main branch is quite changed compared to the video code. The video code can be looked in the specified branch https://github.com/Leon-Sander/local_multimodal_ai_chat/tree/YTVideoCodeVersion

Your error occurs if step 7 from the Getting Started section in the readme file was not done: python database_operations.py This will initialize the sqlite database for the chat sessions.

JTMarsh556 commented 6 months ago

I see. That works. Sorry, I missed that when I cut over from the youtube video to main branch.