Compare commits
No commits in common. "master" and "child_branch" have entirely different histories.
master
...
child_bran
|
@ -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">
|
||||
<img src="https://contrib.rocks/image?repo=Significant-Gravitas/AutoGPT&max=1000&columns=10" alt="Contributors" />
|
||||
</a>
|
||||
|
||||
|
|
|
@ -130,9 +130,6 @@ EXA_API_KEY=
|
|||
# E2B
|
||||
E2B_API_KEY=
|
||||
|
||||
# Nvidia
|
||||
NVIDIA_API_KEY=
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL=INFO
|
||||
ENABLE_CLOUD_LOGGING=false
|
||||
|
|
|
@ -114,13 +114,6 @@ e2b_credentials = APIKeyCredentials(
|
|||
title="Use Credits for E2B",
|
||||
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 = [
|
||||
|
@ -137,7 +130,6 @@ DEFAULT_CREDENTIALS = [
|
|||
fal_credentials,
|
||||
exa_credentials,
|
||||
e2b_credentials,
|
||||
nvidia_credentials,
|
||||
]
|
||||
|
||||
|
||||
|
@ -195,8 +187,6 @@ class IntegrationCredentialsStore:
|
|||
all_credentials.append(exa_credentials)
|
||||
if settings.secrets.e2b_api_key:
|
||||
all_credentials.append(e2b_credentials)
|
||||
if settings.secrets.nvidia_api_key:
|
||||
all_credentials.append(nvidia_credentials)
|
||||
return all_credentials
|
||||
|
||||
def get_creds_by_id(self, user_id: str, credentials_id: str) -> Credentials | None:
|
||||
|
|
|
@ -307,7 +307,6 @@ class Secrets(UpdateTrackingModel["Secrets"], BaseSettings):
|
|||
fal_api_key: str = Field(default="", description="FAL API key")
|
||||
exa_api_key: str = Field(default="", description="Exa 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
|
||||
|
||||
|
|
|
@ -6,14 +6,9 @@
|
|||
- AITextGeneratorBlock
|
||||
- AIStructuredResponseGeneratorBlock
|
||||
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 (
|
||||
SELECT
|
||||
"id",
|
||||
"agentBlockId",
|
||||
"constantInput"::jsonb AS j
|
||||
FROM "AgentNode"
|
||||
|
@ -32,7 +27,6 @@ WITH to_update AS (
|
|||
),
|
||||
updated_rows AS (
|
||||
SELECT
|
||||
"id",
|
||||
"agentBlockId",
|
||||
(
|
||||
j
|
||||
|
@ -81,6 +75,4 @@ updated_rows AS (
|
|||
UPDATE "AgentNode" AS an
|
||||
SET "constantInput" = ur."newConstantInput"
|
||||
FROM updated_rows ur
|
||||
WHERE an."id" = ur."id";
|
||||
|
||||
COMMIT;
|
||||
WHERE an."agentBlockId" = ur."agentBlockId";
|
||||
|
|
Loading…
Reference in New Issue