mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix: align detectAuthMethod priority with backend
This commit is contained in:
parent
536457fb31
commit
2390ab2c2c
1 changed files with 2 additions and 1 deletions
|
|
@ -17,8 +17,9 @@ import HashicorpVaultEmptyPlaceholder from "./HashicorpVaultEmptyPlaceholder";
|
|||
const { Title, Text } = Typography;
|
||||
|
||||
function detectAuthMethod(values: Record<string, any>): string {
|
||||
if (values.vault_token) return "Token";
|
||||
if (values.approle_role_id || values.approle_secret_id) return "AppRole";
|
||||
if (values.client_cert && values.client_key) return "TLS Certificate";
|
||||
if (values.vault_token) return "Token";
|
||||
return "None";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue