Skip to content

callawaycloud/apex-azure-openai

Repository files navigation

Azure OpenAI Salesforce

Library for connecting with Azure's OpenAI API from Salesforce Apex or Flow

Setup

Setup your Azure

  • Register an Azure account and request access to OpenAI api (requires a form at time of publishing).
  • Create a new Azure OpenAI instance
  • Create a new Deployment for GPT-4 or other "Chat" model
  • Grab API keys

Setup Salesforce

  1. Install sf metadata sf project deploy start --source-dir force-app/main/default -o <username>
  2. (Optional) Deploy the examples:
  3. Assign user to Permission Set: sf org assign permset --name AzureOAI
  4. Setup Named Credential
  • Update the Named Credential URL to match your deployment endpoint
  • Update the External Credential Principal with your API Key
Named_Credentials___Salesforce

Note: For Usage, deploy example flow (sf project deploy start --source-dir force-app/main/examples -o <username>) or see apex code in scripts

About

Utility for Connecting with Azure OpenAI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published