I'm trying to make my own discord bot (py-cord) that acts as a front-end for the OpenAI api (davinci, ada, Dalle, etc). It has gone well so far until I tried to add context so I can engage in conversation with my bot. Here's my error:
https://pastebin.com/VuWsxFuP
./Main.py:
https://pastebin.com/isVQwzgW
./Modules/Models.py:
https://pastebin.com/0bbNRqZR
./Data/Context.Json:
{
"openai_api_key": "owo",
"models": {
"davinci": "davinci",
"curie": "curie",
"babbage": "babbage"
}
}
From what I can gather the issue is line 18 of Models.py where I apply the context, but I have no idea what is wrong with it.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.