Skip to content

feat: support LLM from Azure (Azure OpenAI, Azure AI Foundry)#4222

Merged
yujonglee merged 2 commits intomainfrom
devin/1772010881-azure-llm-support
Feb 25, 2026
Merged

feat: support LLM from Azure (Azure OpenAI, Azure AI Foundry)#4222
yujonglee merged 2 commits intomainfrom
devin/1772010881-azure-llm-support

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 25, 2026

feat: add Azure OpenAI and Azure AI Foundry LLM provider support

Closes #3928

Summary

Adds two new LLM providers to the desktop settings:

  • Azure OpenAI — uses the existing @ai-sdk/azure package (createAzure) for chat completions. Model listing hits {baseUrl}/openai/models?api-version=2024-10-21 with api-key header auth.
  • Azure AI Foundry — uses @ai-sdk/openai-compatible for models deployed via Azure AI Foundry (Claude, etc.). Model listing hits {baseUrl}/models with api-key header auth.

Both providers require base_url and api_key configuration. Uses Azure and AzureAI icons from @lobehub/icons. No new packages were added — @ai-sdk/azure was already a dependency.

Both providers are marked with a Beta badge since they haven't been tested with real Azure credentials. Each provider's configuration panel includes a subtle "Report issues" link back to #3928.

Files changed:

  • shared.tsx — provider definitions, icons, Beta badges
  • useLLMConnection.tscreateLanguageModel switch cases
  • select.tsx — model listing wiring
  • configure.tsx — help text with issue link for settings UI
  • list-azure-openai.ts / list-azure-ai.ts — new model listing functions

Review & Testing Checklist for Human

  • azure_ai auth headers: The createOpenAICompatible call sets both apiKey (sends Authorization: Bearer) AND a custom api-key header. Verify Azure AI Foundry accepts this dual-header setup, or if the Authorization header needs to be suppressed.
  • Model listing schemas: The response schemas for both Azure endpoints (AzureOpenAIModelSchema, AzureAIDeploymentSchema) are based on docs — verify they match real Azure responses by testing with actual Azure credentials.
  • Hardcoded API version: api-version=2024-10-21 is hardcoded in the Azure OpenAI model listing URL. Confirm this is acceptable or if it should be configurable.
  • End-to-end test: Configure both Azure OpenAI and Azure AI Foundry providers in the desktop app with real credentials. Verify model listing populates, model selection works, and chat completions succeed.

Notes

- Add Azure OpenAI provider using @ai-sdk/azure (createAzure)
- Add Azure AI Foundry provider using OpenAI-compatible API for Claude and other models
- Add model listing for both providers with appropriate API headers
- Add provider context help text in settings UI
- Use Azure and AzureAI icons from @lobehub/icons

Closes #3928

Co-Authored-By: John <john@hyprnote.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Feb 25, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 3e28d23
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/699ec1bf667ebb00085f4774

@netlify
Copy link

netlify bot commented Feb 25, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 3e28d23
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/699ec1bfc77a9f00082ec0d2

Co-Authored-By: John <john@hyprnote.com>
@yujonglee yujonglee merged commit 5877608 into main Feb 25, 2026
13 checks passed
@yujonglee yujonglee deleted the devin/1772010881-azure-llm-support branch February 25, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support LLM from Azure like Azure OpenAI, Azure Claude etc

2 participants