Skip to content

This is a Power Platform custom connector project for OpenAI API and Azure OpenAI Service API.

License

Notifications You must be signed in to change notification settings

devrel-kr/azure-openai-connector

Repository files navigation

OpenAI Connector

This is a Power Platform custom connector project for OpenAI API and Azure OpenAI Service API.

Prerequisites

Getting Started

For local development on various OS, please refer to this document downloading ffmpeg.

App Provisioning & Deployment

  1. Fork this repository to your account.

  2. To provision resources, run the commands in the following order:

    # PowerShell
    $AZURE_ENV_NAME = "pp$(Get-Random -Max 9999)"
    $GITHUB_USERNAME = "{{GITHUB_USERNAME}}"
    
    # Bash
    AZURE_ENV_NAME="pp$RANDOM"
    GITHUB_USERNAME="{{GITHUB_USERNAME}}"
    azd auth login
    azd init -e $AZURE_ENV_NAME
    azd env set GITHUB_USERNAME $GITHUB_USERNAME
    azd env set GITHUB_REPOSITORY_NAME azure-openai-connector
    azd up
  3. To deploy apps, run the commands in the following order:

    gh auth login
    azd pipeline config
    gh workflow run "Azure Dev" --repo $GITHUB_USERNAME/azure-openai-connector

Power Platform Custom Connector

  1. Import https://github.com/devrel-kr/openai-connector/blob/main/infra/swagger-aoai.json
  2. Create a connection

Sample Apps