From b103540b99f1c6e683b31ec0265cdd89607c78aa Mon Sep 17 00:00:00 2001 From: Bing Zhu Date: Tue, 26 Aug 2025 12:28:17 +0800 Subject: [PATCH] fix: custom calude; --- src/components/ModelSelector.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ModelSelector.tsx b/src/components/ModelSelector.tsx index c66ceaa..8e8db6b 100644 --- a/src/components/ModelSelector.tsx +++ b/src/components/ModelSelector.tsx @@ -480,6 +480,7 @@ export function ModelSelector({ 'x-api-key': apiKey, 'anthropic-version': '2023-06-01', 'Content-Type': 'application/json', + 'Authorization': `Bearer ${apiKey}` }, }) @@ -1846,7 +1847,7 @@ export function ModelSelector({ } // Use the verifyApiKey function which uses the official Anthropic SDK - const isValid = await verifyApiKey(apiKey, testBaseURL) + const isValid = await verifyApiKey(apiKey, testBaseURL, selectedProvider) if (isValid) { return {