Skip to content

Simple Python code to integrate with Azure OpenAI Service

License

Notifications You must be signed in to change notification settings

mattfeltonma/demo-openai-python

Repository files navigation

Azure OpenAI Service - Python Example

This repository contains very simple code to demonstrate using the Azure OpenAI Service using Python with Entra ID authentication.

It demonstrates three patterns:

  1. Using the OpenAI Python SDK with a service principal with a client id and client secret.
  2. Using the OpenAI Python SDK with a user-assigned managed identity.
  3. Using the OpenAI REST API with a service principal with a client id and client secret.

You can read more about the options for authentication within the Azure OpenAI Service at this blog.

About

Simple Python code to integrate with Azure OpenAI Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages