API Call with conversation history
# 📖tutorials
b
hi @fresh-fireman-491! thanks for this. how can I set the OpenAI's API key on the execute code?
f
That is a good question! You set it up in the settings of your bot. You start by hitting the gear icon of the left side in the studio. Then scroll down untill you see "Configuration Variables" Hit the
+
icon and then name it
OPENAI_API_KEY
and paste in your API key. https://cdn.discordapp.com/attachments/1233754375554338878/1233772669946695680/image.png?ex=662e4fd6&is=662cfe56&hm=59287fb48d91d5deca35de6eb89c53f33cd12e8e6ac9d5e92b3bf08e73e9cdcf& https://cdn.discordapp.com/attachments/1233754375554338878/1233772670269653002/image.png?ex=662e4fd6&is=662cfe56&hm=dba9fe5e36dbe3ead814b34b3bd39a35d50dedded985d27d9e8f1da6da8804fe&
b
thanks for this @fresh-fireman-491! 🙏
f
You are very welcome!
2 Views