⚙️ 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
- Head to the Azure AI Studio and Choose the
Model Catalog
. - Select the model you want to deploy and Click
Deploy
. - Follow the on-screen instructions to deploy the model.
- Get the required credentials like the API Key, Endpoint, and Deployment Name.
NOTE
Keep your API key secure! Never share it publicly.
🛠️ Configuration
Access Flexpilot settings from VS Code:
- Press
Ctrl+Shift+P
(Windows) orCmd+Shift+P
(Mac). - Select
Flexpilot: Configure the Language Model Provider
. - Choose
Add New Configuration
. - Select
Azure OpenAI
(options:azure-openai-chat
orazure-openai-completion
).
- Press
Enter a nickname when prompted. Pressing Escape will cancel the model configuration.
Enter your API Key when prompted.
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.