Skip to content

Fix invalid 'import OpenAI' in Azure OpenAI Microsoft Entra ID Service Connector snippet - #128762

Open
SpiliosDmk (SpiliosDimakopoulos) wants to merge 1 commit into
MicrosoftDocs:mainfrom
SpiliosDimakopoulos:fix/service-connector-openai-entra-id-import
Open

Fix invalid 'import OpenAI' in Azure OpenAI Microsoft Entra ID Service Connector snippet#128762
SpiliosDmk (SpiliosDimakopoulos) wants to merge 1 commit into
MicrosoftDocs:mainfrom
SpiliosDimakopoulos:fix/service-connector-openai-entra-id-import

Conversation

@SpiliosDimakopoulos

Copy link
Copy Markdown

'import OpenAI' fails immediately with ModuleNotFoundError - Python
is case-sensitive and there's no top-level 'OpenAI' package, so this
breaks the very first line of active code for every reader following
this guide, before they even reach the AzureOpenAI(...) call further
down.

Fixed to 'from openai import AzureOpenAI', matching the sibling
code-openai-secret.md file in the same directory, which already uses
the correct import for the same client.

…e Connector snippet

'import OpenAI' fails immediately with ModuleNotFoundError - Python
is case-sensitive and there's no top-level 'OpenAI' package, so this
breaks the very first line of active code for every reader following
this guide, before they even reach the AzureOpenAI(...) call further
down.

Fixed to 'from openai import AzureOpenAI', matching the sibling
code-openai-secret.md file in the same directory, which already uses
the correct import for the same client.
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 38e0d39:

✅ Validation status: passed

File Status Preview URL Details
articles/service-connector/includes/code-openai-microsoft-entra-id.md ✅Succeeded

For more details, please refer to the build report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant