SwiftOpenAI icon indicating copy to clipboard operation
SwiftOpenAI copied to clipboard

MessageParameter content is always a String

Open ADiamondDeveloper opened this issue 1 year ago • 0 comments

Currently, MessageParameter content is always a string. Could you update it to allow more flexibility, similar to the content in createMessage, since messages might need to handle different types of content?

From: let content: String

To: let content: [ContentPart], allowing for text, image_file, and image_url objects."

ADiamondDeveloper avatar Sep 29 '24 06:09 ADiamondDeveloper