subh05sus / GeetaGPT

A GPT based Chatbot made with Flask which possesses knowledge about Shrimadvagwat Geeta and act like Lord Krishna
https://geetagpt.subhadip.me
22 stars 16 forks source link

Data Type Error for String Indices #22

Open SemalJohari opened 6 months ago

SemalJohari commented 6 months ago

Encountered the following error: 'An error occurred: string indices must be integers, not 'str'', on entering a prompt in the GeetaGPT. A screenshot to show the error is attached below. I used Brave Browser on the Microsoft Windows 11 Pro (Version = 10.0.22631 Build 22631) Operating System for running the web application locally. I installed the required versions of OpenAI and Flask frameworks and it doesn't seem to cause conflicts with the Python version 3.11.7 as of now. Can you please assign addressing this issue to me, to start off with my contribution in the project? @subh05sus

Screenshot (159)

subh05sus commented 6 months ago

have you initialized OpenAI api initialized properly ?

SemalJohari commented 6 months ago

yes, i have. the main.py code is similar to yours

subh05sus commented 6 months ago

have you added the API keys to your .env ?

SemalJohari commented 6 months ago

yes, i have added. the error is for the data type