When we get back a message from the AI, we want to assign that to the `assistant` role and add it to the messages array. This means that we have a history of the conversation because…
By
–

When we get back a message from the AI, we want to assign that to the `assistant` role and add it to the messages array. This means that we have a history of the conversation because…