diff --git a/Demos/Chat/Chat/ChatDataLoader.swift b/Demos/Chat/Chat/ChatDataLoader.swift index 9d9aa5c..ce1b87f 100644 --- a/Demos/Chat/Chat/ChatDataLoader.swift +++ b/Demos/Chat/Chat/ChatDataLoader.swift @@ -18,7 +18,7 @@ final actor ChatDataLoader { /// All chat messages, including user queries and openai responses. /// The full history of the chat is sent with each request to openai to provide an ongoing conversation with memory. - private var messages = [OpenAIChatCompletionMessage]() + private var messages = [OpenAIChatCompletionRequestBody.Message]() /// Add a user message to the conversation and stream back the openai response func addToConversation(_ prompt: String) async throws -> AsyncThrowingStream {