Fun With OpenAI and Laravel, Ep 02 - Keep the Conversation Going

In this lesson, I delve into how to continue the conversation with OpenAI. I demonstrate how to maintain the context of the conversation by storing each message in an array and sending the entire conversation history back to OpenAI with each new request. We’ll also introduce a new Chat class to better organize our interaction with OpenAI. Watch The Full Series now on Laracasts: Watch thousands of videos, track your progress, and participate in a massive Laravel community at . Laracasts: Laracasts Twitter: Jeffrey Way Twitter:
Back to Top