Hi, im using pycharm and practicing the chatgpt pizza ordering bot and pasting this code right after the dashboard
messages = context.copy()
messages.append(
{‘role’:‘system’, ‘content’:‘format the previous food order in json format. Itemize the price for each item
The fields should be 1) pizza, include size 2) list of toppings 3) list of drinks, include size 4) list of sides include size 5)total price 6) name,email and phone number 7)delivery or pick up, if its delivery show the delivery address’},)
#The fields should be 1) pizza, price 2) list of toppings 3) list of drinks, include size include price 4) list of sides include size include price, 5)total price '},
response = get_completion_from_messages(messages, temperature=0)
json_summary=json.loads(response)
print(json_summary)
This code supposed to execute and print the pizza order summary right after the order completion, but it doesn’t do that, i’m using venv instead of conda like in the video