Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Demos/Chat/Chat/ChatDataLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Error> {
Expand Down