Merge pull request #47 from bing-zhub/fix_custom_claude

fix: custom calude;
This commit is contained in:
Xinlu Lai 2025-08-26 13:16:47 +08:00 committed by GitHub
commit 2fc581865d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -480,6 +480,7 @@ export function ModelSelector({
'x-api-key': apiKey, 'x-api-key': apiKey,
'anthropic-version': '2023-06-01', 'anthropic-version': '2023-06-01',
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': `Bearer ${apiKey}`
}, },
}) })
@ -1846,7 +1847,7 @@ export function ModelSelector({
} }
// Use the verifyApiKey function which uses the official Anthropic SDK // 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) { if (isValid) {
return { return {