AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(backend): add missed default credentials (#11760)
Nicholas Tindle06550a87ebbc
diff --git a/autogpt_platform/backend/backend/integrations/credentials_store.py b/autogpt_platform/backend/backend/integrations/credentials_store.pyindex 68fa16b38d..40a6f7269c 100644--- a/autogpt_platform/backend/backend/integrations/credentials_store.py+++ b/autogpt_platform/backend/backend/integrations/credentials_store.py@@ -96,9 +96,9 @@ jina_credentials = APIKeyCredentials()unreal_credentials = APIKeyCredentials(id="66f20754-1b81-48e4-91d0-f4f0dd82145f",- provider="unreal",+ provider="unreal_speech",api_key=SecretStr(settings.secrets.unreal_speech_api_key),- title="Use Credits for Unreal",+ title="Use Credits for Unreal Speech",expires_at=None,)open_router_credentials = APIKeyCredentials(@@ -216,6 +216,14 @@ webshare_proxy_credentials = UserPasswordCredentials(title="Use Credits for Webshare Proxy",)+openweathermap_credentials = APIKeyCredentials(+ id="8b3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f",+ provider="openweathermap",+ api_key=SecretStr(settings.secrets.openweathermap_api_key),+ title="Use Credits for OpenWeatherMap",+ expires_at=None,+)+DEFAULT_CREDENTIALS = [ollama_credentials,revid_credentials,@@ -243,6 +251,7 @@ DEFAULT_CREDENTIALS = [llama_api_credentials,v0_credentials,webshare_proxy_credentials,+ openweathermap_credentials,]SYSTEM_CREDENTIAL_IDS = {cred.id for cred in DEFAULT_CREDENTIALS}@@ -346,11 +355,17 @@ class IntegrationCredentialsStore:all_credentials.append(zerobounce_credentials)if settings.secrets.google_maps_api_key:all_credentials.append(google_maps_credentials)+ if settings.secrets.llama_api_key:+ all_credentials.append(llama_api_credentials)+ if settings.secrets.v0_api_key:+ all_credentials.append(v0_credentials)if (settings.secrets.webshare_proxy_usernameand settings.secrets.webshare_proxy_password):all_credentials.append(webshare_proxy_credentials)+ if settings.secrets.openweathermap_api_key:+ all_credentials.append(openweathermap_credentials)return all_credentialsasync def get_creds_by_id(diff --git a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsxindex 17800a03a4..ebea63b0b6 100644--- a/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/profile/(user)/integrations/page.tsx@@ -116,6 +116,9 @@ export default function UserIntegrationsPage() {"63a6e279-2dc2-448e-bf57-85776f7176dc", // ZeroBounce"9aa1bde0-4947-4a70-a20c-84daa3850d52", // Google Maps"d44045af-1c33-4833-9e19-752313214de2", // Llama API+ "c4e6d1a0-3b5f-4789-a8e2-9b123456789f", // V0 by Vercel+ "a5b3c7d9-2e4f-4a6b-8c1d-9e0f1a2b3c4d", // Webshare Proxy+ "8b3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f", // OpenWeatherMap],[],);