Skip to content
Closed
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
4 changes: 1 addition & 3 deletions Sources/OpenAISwift/Models/ChatMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ public enum ChatRole: String, Codable {
}

/// A structure that represents a single message in a chat conversation.
public struct ChatMessage: Codable, Identifiable {
// uuid to conform to Identifiable protocol
public var id = UUID()
public struct ChatMessage: Codable {
/// The role of the sender of the message.
public let role: ChatRole?
/// The content of the message.
Expand Down