From 1cfb8eb4d2005c848e936303dbe4c5cedcf34665 Mon Sep 17 00:00:00 2001 From: Joe Bezdek Date: Wed, 30 Jul 2025 18:27:36 -0700 Subject: [PATCH] Fix deprecated reference to OpenAIChatCompletionMessage --- Demos/Chat/Chat/ChatDataLoader.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {