0.4.0 (2023-12-11)
Support for many of the features mentioned in OpenAI's November Dev Day and Microsoft's 2023 Ignite conference
Features Added
- Chat completions has been extended to accomodate new features:
- Parallel function calling via Tools. See the function
ExampleClient_GetChatCompletions_functions
inexample_client_getchatcompletions_extensions_test.go
for an example of specifying a Tool. - "JSON mode", via
ChatCompletionOptions.ResponseFormat
for guaranteed function outputs.
- Parallel function calling via Tools. See the function
- ChatCompletions can now be used with both text and images using
gpt-4-vision-preview
.- Azure enhancements to
gpt-4-vision-preview
results that include grounding and OCR features
- Azure enhancements to
- GetImageGenerations now works with DallE-3.
-1106
model feature support forgpt-35-turbo
andgpt-4-turbo
, including use of a seed viaChatCompletionsOptions.Seed
and system fingerprints returned inChatCompletions.SystemFingerprint
.dall-e-3
image generation capabilities viaGetImageGenerations
, featuring higher model quality, automatic prompt revisions bygpt-4
, and customizable quality/style settings
Breaking Changes
azopenai.KeyCredential
has been replaced by azcore.KeyCredential.Deployment
has been renamed toDeploymentName
throughout all APIs.CreateImage
has been replaced withGetImageGenerations
.ChatMessage
has been split into per-role types. The functionExampleClient_GetChatCompletions
inexample_client_getcompletions_test.go
shows an example of this.