From f1bb5bd67e3690df66f0d4725e13dde4270989c0 Mon Sep 17 00:00:00 2001 From: decolua Date: Sun, 3 May 2026 15:33:25 +0700 Subject: [PATCH] Squashed commit of the following: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 8b2ab7c9e05689c1bf55002cc79db8d22a398c75 Author: kundeng Date: Mon Apr 20 11:26:58 2026 -0400 fix: send providerSpecificData in Edit modal validate calls The Check button in the Edit modal was sending only apiKey without the Azure endpoint/deployment/org, causing validation to fail. Co-Authored-By: Claude Opus 4.6 commit c894fa838d035ecd9a160339342371042697c327 Author: kundeng Date: Mon Apr 20 01:45:13 2026 -0400 fix: persist Azure providerSpecificData and add connection test - Read body.providerSpecificData in POST /api/providers so Azure fields (endpoint, deployment, apiVersion, organization) are actually stored - Add azure case to testApiKeyConnection so the Test button works correctly instead of falling through to "not supported" Co-Authored-By: Claude Opus 4.6 commit 00bd1a4151f4e73616969e25d1786c87d1ec0d5e Author: kundeng Date: Mon Apr 20 01:24:39 2026 -0400 fix: add Azure validation and make Organization required - Add Azure case to /api/providers/validate that sends a test chat completion with api-key header and organization - Pass Azure-specific data (endpoint, deployment, apiVersion, org) from Add modal to validate endpoint - Make Organization field required (needed for billing) Co-Authored-By: Claude Opus 4.6 commit a66a04daab69b07baa4cc6b28772249e4b25ea19 Author: kundeng Date: Mon Apr 20 01:15:53 2026 -0400 fix: add Azure config fields to Add API Key modal The Add modal was missing the Azure-specific fields (endpoint, deployment, API version, organization) — only the Edit modal had them. Co-Authored-By: Claude Opus 4.6 commit 6ac3f4a97af8468d210594495ce754f5d7a7978a Author: kundeng Date: Mon Apr 20 01:06:45 2026 -0400 feat: add Azure OpenAI as a dedicated provider Azure OpenAI uses a different URL scheme (deployments-based) and api-key header auth instead of Bearer tokens. This adds a dedicated AzureExecutor that constructs the correct URL and headers, plus dashboard UI fields for endpoint, deployment, API version, and organization. Co-Authored-By: Claude Opus 4.6 --- .../dashboard/providers/[id]/AddApiKeyModal.js | 1 - src/shared/components/EditConnectionModal.js | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js b/src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js index ebfcc712..e1056439 100644 --- a/src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js +++ b/src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js @@ -261,7 +261,6 @@ export default function AddApiKeyModal({ isOpen, provider, providerName, isCompa