in starting_point/python-backend/app.py [0:0]
def get_response():
data = request.get_json()
messages = data['messages']
print("Incoming messages", messages)
time.sleep(2)
return jsonify({
"role": "assistant",
"content": "This is a default message, update the backend to get a response from the OpenAI API instead."
})