1.0.0-beta.17 (2024-05-03)
Features Added
- Image input support for
gpt-4-turbo
chat completions now works with image data in addition to internet URLs.
Images may be now be used asgpt-4-turbo
message content items via one of three constructors:ChatMessageImageContent(Uri)
-- the existing constructor, used for URL-based image referencesChatMessageImageContent(Stream,string)
-- (new) used with a stream and known MIME type (likeimage/png
)ChatMessageImageContent(BinaryData,string)
-- (new) used with a BinaryData instance and known MIME type
Please see the readme example for more details.
Breaking Changes
- Public visibility of the
ChatMessageImageUrl
type is removed to promote more flexible use of data sources in
ChatMessageImageContent
. Code that previously created aChatMessageImageUrl
using aUri
should simply provide
theUri
to theChatMessageImageContent
constructor directly.