chore: cleanup and format and small refactor

This commit is contained in:
Ralph Khreish
2025-06-20 16:03:48 +03:00
parent 9d431b4b03
commit 30eac026c2
3 changed files with 9 additions and 5 deletions

View File

@@ -497,9 +497,13 @@ function getParametersForRole(role, explicitRoot = null) {
function isApiKeySet(providerName, session = null, projectRoot = null) {
// Define the expected environment variable name for each provider
const okKeys = ['ollama', 'bedrock'];
// Providers that don't require API keys for authentication
const providersWithoutApiKeys = [
CUSTOM_PROVIDERS.OLLAMA,
CUSTOM_PROVIDERS.BEDROCK
];
if (okKeys.includes(providerName?.toLowerCase())) {
if (providersWithoutApiKeys.includes(providerName?.toLowerCase())) {
return true; // Indicate key status is effectively "OK"
}