Skip to content

⚙️ Azure OpenAI Provider Setup

This guide walks you through setting up Azure OpenAI models with Flexpilot, an advanced AI code assistant for VS Code, similar to GitHub Copilot.

🔑 Getting API Key

  1. Head to the Azure AI Studio and Choose the Model Catalog.
  2. Select the model you want to deploy and Click Deploy.
  3. Follow the on-screen instructions to deploy the model.
  4. Get the required credentials like the API Key, Endpoint, and Deployment Name.

NOTE

Keep your API key secure! Never share it publicly.

🛠️ Configuration

  1. Access Flexpilot settings from VS Code:

    • Press Ctrl+Shift+P (Windows) or Cmd+Shift+P (Mac).
    • Select Flexpilot: Configure the Language Model Provider.
    • Choose Add New Configuration.
    • Select Azure OpenAI (options: azure-openai-chat or azure-openai-completion).
  2. Enter a nickname when prompted. Pressing Escape will cancel the model configuration.

  3. Enter your API Key when prompted.

  4. Enter Azure OpenAI base url when prompted. The value should be in the format of https://{resourceName}.openai.azure.com/openai/deployments/{deploymentId}.

📌 Important Notes

  • 🔒 Keep credentials secure to prevent unauthorized access.
  • 💵 Billing is managed via your Azure subscription. Check Azure OpenAI pricing for details.

🚫 Troubleshooting

  • Subscription Issues: Ensure your Azure subscription is active.
  • Credentials: Double-check that all credentials are entered correctly.
  • Model Deployment: Verify you have deployed the required models under Model Deployments.

For more guidance, consult Azure’s OpenAI Documentation.