1.0.0-beta.6 (2023-12-11)
Features Added
-1106
model feature support forgpt-35-turbo
andgpt-4-turbo
, including use ofseed
,system_fingerprint
,
parallel function calling via tools, "JSON mode" for guaranteed function outputs, and moredall-e-3
image generation capabilities viagetImageGenerations
, featuring higher model quality, automatic prompt
revisions bygpt-4
, and customizable quality/style settings- Greatly expanded "On Your Data" capabilities in Azure OpenAI, including many new data source options and authentication
mechanisms - Early support for
gpt-4-vision-preview
, which allows the hybrid use of text and images as input to enable scenarios
like "describe this image for me" - Support for Azure enhancements to
gpt-4-vision-preview
results that include grounding and OCR features
Breaking Changes
- Removed methods
getAudioTranscriptionAsResponseObject
andgetAudioTranscriptionAsResponseObjectWithResponse
fromOpenAIClient
andOpenAIAsyncClient
classes.
UsegetAudioTranscription
orgetAudioTranscriptionWithResponse
convenience methods from respective classes. - Removed methods
getAudioTranslationAsResponseObject
andgetAudioTranslationAsResponseObjectWithResponse
fromOpenAIClient
andOpenAIAsyncClient
classes.
UsegetAudioTranslation
orgetAudioTranslationWithResponse
convenience methods from respective classes.
ChatMessage
changes:
- The singular
ChatMessage
type has been replaced byChatRequestMessage
andChatResponseMessage
, the former of
which is an abstract, polymorphic type with concrete derivations likeChatRequestSystemMessage
and
ChatRequestUserMessage
. This requires conversion from oldChatMessage
into the new types. While this is
usually a straightforward string replacement, converting a response message into a request message (e.g. when
propagating an assistant response to continue the conversation) will require creating a new instance of the
appropriate request message with the response message's data. See the examples for details.
Dall-e-3:
- Azure OpenAI now uses
dall-e-3
model deployments for its image generation API and such a valid deployment must
be provided into the options for thegetImageGenerations()
method to receive results.
Other Changes
- Audio transcription and translation (via
getAudioTranscription()
andgetAudioTranslation()
now allow specification of an optionalfileName
in addition to the binary audio data. This is used purely as an identifier and does not functionally alter the transcription/translation behavior in any way.