+ 2

What is the error in this gpt code?

Code problem https://code.sololearn.com/cF1Bg2SCRJr0/?ref=app

16th Jul 2023, 10:12 AM
Aquarius
Aquarius - avatar
3 Réponses
+ 7
What are you trying to do here? Checking the openai documentation would be a good start for you. https://platform.openai.com/docs/api-reference/introduction?lang=JUMP_LINK__&&__python__&&__JUMP_LINK To use this service you need an API key which you should keep secret. For this reason I recommend to not post such code on Sololearn because you cannot guarantee the privacy of your API key. And it will not work on Sololearn anyway because the relevant libraries are not installed in the Python playground.
16th Jul 2023, 10:58 AM
Tibor Santa
Tibor Santa - avatar
+ 2
Thank you so much for your answer
16th Jul 2023, 12:15 PM
Aquarius
Aquarius - avatar
0
You need an openAI key to run your ChatGPT. You can get it from https://platform.openAI.com
10th Aug 2023, 2:31 AM
Adonai Solomon
Adonai Solomon - avatar