Compare commits

..

No commits in common. "master" and "child_branch" have entirely different histories.

5 changed files with 1 additions and 24 deletions

View File

@ -176,4 +176,3 @@ To maintain a uniform standard and ensure seamless compatibility with many curre
<a href="https://github.com/Significant-Gravitas/AutoGPT/graphs/contributors" alt="View Contributors"> <a href="https://github.com/Significant-Gravitas/AutoGPT/graphs/contributors" alt="View Contributors">
<img src="https://contrib.rocks/image?repo=Significant-Gravitas/AutoGPT&max=1000&columns=10" alt="Contributors" /> <img src="https://contrib.rocks/image?repo=Significant-Gravitas/AutoGPT&max=1000&columns=10" alt="Contributors" />
</a> </a>

View File

@ -130,9 +130,6 @@ EXA_API_KEY=
# E2B # E2B
E2B_API_KEY= E2B_API_KEY=
# Nvidia
NVIDIA_API_KEY=
# Logging Configuration # Logging Configuration
LOG_LEVEL=INFO LOG_LEVEL=INFO
ENABLE_CLOUD_LOGGING=false ENABLE_CLOUD_LOGGING=false

View File

@ -114,13 +114,6 @@ e2b_credentials = APIKeyCredentials(
title="Use Credits for E2B", title="Use Credits for E2B",
expires_at=None, expires_at=None,
) )
nvidia_credentials = APIKeyCredentials(
id="96b83908-2789-4dec-9968-18f0ece4ceb3",
provider="nvidia",
api_key=SecretStr(settings.secrets.nvidia_api_key),
title="Use Credits for Nvidia",
expires_at=None,
)
DEFAULT_CREDENTIALS = [ DEFAULT_CREDENTIALS = [
@ -137,7 +130,6 @@ DEFAULT_CREDENTIALS = [
fal_credentials, fal_credentials,
exa_credentials, exa_credentials,
e2b_credentials, e2b_credentials,
nvidia_credentials,
] ]
@ -195,8 +187,6 @@ class IntegrationCredentialsStore:
all_credentials.append(exa_credentials) all_credentials.append(exa_credentials)
if settings.secrets.e2b_api_key: if settings.secrets.e2b_api_key:
all_credentials.append(e2b_credentials) all_credentials.append(e2b_credentials)
if settings.secrets.nvidia_api_key:
all_credentials.append(nvidia_credentials)
return all_credentials return all_credentials
def get_creds_by_id(self, user_id: str, credentials_id: str) -> Credentials | None: def get_creds_by_id(self, user_id: str, credentials_id: str) -> Credentials | None:

View File

@ -307,7 +307,6 @@ class Secrets(UpdateTrackingModel["Secrets"], BaseSettings):
fal_api_key: str = Field(default="", description="FAL API key") fal_api_key: str = Field(default="", description="FAL API key")
exa_api_key: str = Field(default="", description="Exa API key") exa_api_key: str = Field(default="", description="Exa API key")
e2b_api_key: str = Field(default="", description="E2B API key") e2b_api_key: str = Field(default="", description="E2B API key")
nvidia_api_key: str = Field(default="", description="Nvidia API key")
# Add more secret fields as needed # Add more secret fields as needed

View File

@ -6,14 +6,9 @@
- AITextGeneratorBlock - AITextGeneratorBlock
- AIStructuredResponseGeneratorBlock - AIStructuredResponseGeneratorBlock
with a double brace format. with a double brace format.
- This migration can be slow for a large updated AgentNode tables.
*/ */
BEGIN;
SET LOCAL statement_timeout = '10min';
WITH to_update AS ( WITH to_update AS (
SELECT SELECT
"id",
"agentBlockId", "agentBlockId",
"constantInput"::jsonb AS j "constantInput"::jsonb AS j
FROM "AgentNode" FROM "AgentNode"
@ -32,7 +27,6 @@ WITH to_update AS (
), ),
updated_rows AS ( updated_rows AS (
SELECT SELECT
"id",
"agentBlockId", "agentBlockId",
( (
j j
@ -81,6 +75,4 @@ updated_rows AS (
UPDATE "AgentNode" AS an UPDATE "AgentNode" AS an
SET "constantInput" = ur."newConstantInput" SET "constantInput" = ur."newConstantInput"
FROM updated_rows ur FROM updated_rows ur
WHERE an."id" = ur."id"; WHERE an."agentBlockId" = ur."agentBlockId";
COMMIT;