mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 13:30:22 +00:00
auth: avoid plugin setup scans during common auth resolution
This commit is contained in:
@@ -35,6 +35,7 @@ export function resolveEnvApiKey(
|
||||
return resolved;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if (normalized === "google-vertex") {
|
||||
|
||||
@@ -407,6 +407,10 @@ export async function resolveApiKeyForProvider(params: {
|
||||
};
|
||||
}
|
||||
}
|
||||
const normalized = normalizeProviderId(provider);
|
||||
if (authOverride === undefined && normalized === "amazon-bedrock") {
|
||||
return resolveAwsSdkAuthInfo();
|
||||
}
|
||||
|
||||
if (params.credentialPrecedence === "env-first") {
|
||||
const envResolved = resolveEnvApiKey(provider);
|
||||
@@ -494,11 +498,6 @@ export async function resolveApiKeyForProvider(params: {
|
||||
return syntheticLocalAuth;
|
||||
}
|
||||
|
||||
const normalized = normalizeProviderId(provider);
|
||||
if (authOverride === undefined && normalized === "amazon-bedrock") {
|
||||
return resolveAwsSdkAuthInfo();
|
||||
}
|
||||
|
||||
const hasInlineConfiguredModels =
|
||||
Array.isArray(providerConfig?.models) && providerConfig.models.length > 0;
|
||||
const owningPluginIds = !hasInlineConfiguredModels
|
||||
|
||||
Reference in New Issue
Block a user