1.0.0-beta.6 (2023-07-19)
Features Added
- DALL-E image generation is now supported. See the Azure OpenAI quickstart for conceptual background and detailed setup instructions.
OpenAIClient
gains a newGetImageGenerations
method that accepts anImageGenerationOptions
and produces anImageGenerations
via its response. This response object encapsulates the temporary storage location of generated images for future retrieval.- In contrast to other capabilities, DALL-E image generation does not require explicit creation or specification of a deployment or model. Its surface as such does not include this concept.
- Functions for chat completions are now supported: see OpenAI's blog post on the topic for much more detail.
- A list of
FunctionDefinition
objects may be populated onChatCompletionsOptions
via itsFunctions
property. These definitions include a name and description together with a serialized JSON Schema representation of its parameters; these parameters can be generated easily viaBinaryData.FromObjectAsJson
with dynamic objects -- see the README for example usage. - NOTE: Chat Functions requires a minimum of the
-0613
model versions forgpt-4
andgpt-3.5-turbo
/gpt-35-turbo
. Please ensure you're using these later model versions, as Functions are not supported with older model revisions. For Azure OpenAI, you can update a deployment's model version or create a new model deployment with an updated version via the Azure AI Studio interface, also accessible through Azure Portal.
- A list of
- (Azure OpenAI specific) Completions and Chat Completions responses now include embedded content filter annotations for prompts and responses
- A new
Azure.AI.OpenAI.AzureOpenAIModelFactory
is now present for mocking.
Breaking Changes
ChatMessage
's one-parameter constructor has been replaced with a no-parameter constructor. Please replace any hybrid construction with one of these two options that either completely rely on property setting or completely rely on constructor parameters.