The word response in showing error

In the video the code written by you is error free but mine is showing error in response

if I change the chat completion format it is now showing error in chat completion

Hi @naman.chhabra2909

Please make the following changes in your code:

on line no.22:

response=openai.chat.completions.create(

on line no. 43

output = response.choices[0].message.content
print(output)

Do try this and let us know. If you still face any issues, please feel free to get back to us.