github Azure/azure-sdk-for-net Azure.AI.OpenAI_1.0.0-beta.6

latest releases: Azure.AI.Translation.Document_2.0.0, Azure.Storage.Blobs.Batch_12.20.0, Azure.Storage.Files.DataLake_12.21.0...
pre-release16 months ago

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 new GetImageGenerations method that accepts an ImageGenerationOptions and produces an ImageGenerations 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 on ChatCompletionsOptions via its Functions property. These definitions include a name and description together with a serialized JSON Schema representation of its parameters; these parameters can be generated easily via BinaryData.FromObjectAsJson with dynamic objects -- see the README for example usage.
    • NOTE: Chat Functions requires a minimum of the -0613 model versions for gpt-4 and gpt-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.
  • (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.

Don't miss a new azure-sdk-for-net release

NewReleases is sending notifications on new releases.