Merge pull request #47 from bing-zhub/fix_custom_claude
fix: custom calude;
This commit is contained in:
commit
2fc581865d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user