From f8456b0fe2ef9543ef5a902c937c01e061b09138 Mon Sep 17 00:00:00 2001 From: ashjeanbird <132003136+ashjeanbird@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:39:43 -1000 Subject: [PATCH 1/2] Adds DALL-E note to Azure OpenAI in v1 SDK Adds important note for Azure OpenAI users. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e8bf6ecec..1d97778b90 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The API documentation can be found [here](https://platform.openai.com/docs). ## Installation > [!IMPORTANT] -> The SDK was rewritten in v1, which was released November 6th 2023. See the [v1 migration guide](https://github.com/openai/openai-python/discussions/742), which includes scripts to automatically update your code. +> The SDK was rewritten in v1, which was released November 6th 2023. See the [v1 migration guide](https://github.com/openai/openai-python/discussions/742), which includes scripts to automatically update your code. ```sh pip install openai @@ -458,6 +458,8 @@ class instead of the `OpenAI` class. > The Azure API shape differs from the core API shape which means that the static types for responses / params > won't always be correct. +Azure OpenAI DALL-E is currently not supported in the v1 SDK. We are actively working on adding support. + ```py from openai import AzureOpenAI From 3a115ddcb55f58590ccac776055c7a86cfe52b00 Mon Sep 17 00:00:00 2001 From: ashjeanbird <132003136+ashjeanbird@users.noreply.github.com> Date: Fri, 10 Nov 2023 08:52:03 -1000 Subject: [PATCH 2/2] Updates DALL-E docs to include workaround Included a link to the workaround --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d97778b90..f213c89a88 100644 --- a/README.md +++ b/README.md @@ -458,7 +458,9 @@ class instead of the `OpenAI` class. > The Azure API shape differs from the core API shape which means that the static types for responses / params > won't always be correct. -Azure OpenAI DALL-E is currently not supported in the v1 SDK. We are actively working on adding support. +The latest release of the OpenAI Python library doesn't currently support DALL-E when used with Azure OpenAI. DALL-E with Azure OpenAI is still supported with 0.28.1. For those who can't wait for native support for DALL-E and Azure OpenAI we're providing [two code examples](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/migration?tabs=python%2Cdalle-fix#dall-e-fix) which can be used as a workaround. + + ```py from openai import AzureOpenAI