Skip to content

Commit

Permalink
Merge branch 'dev' into kpczerwinski/open-2054-edit-button-on-the-mon…
Browse files Browse the repository at this point in the history
…itor-page-is-way-too-subtle
  • Loading branch information
aarushik93 authored Nov 18, 2024
2 parents fd4b099 + e840106 commit 921b120
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
8 changes: 0 additions & 8 deletions autogpt_platform/backend/backend/util/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
import sys


def get_secrets_path() -> pathlib.Path:
return get_data_path() / "secrets"


def get_config_path() -> pathlib.Path:
return get_data_path()


def get_frontend_path() -> pathlib.Path:
if getattr(sys, "frozen", False):
# The application is frozen
Expand Down
11 changes: 1 addition & 10 deletions autogpt_platform/backend/backend/util/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SettingsConfigDict,
)

from backend.util.data import get_data_path, get_secrets_path
from backend.util.data import get_data_path

T = TypeVar("T", bound=BaseSettings)

Expand Down Expand Up @@ -272,7 +272,6 @@ class Secrets(UpdateTrackingModel["Secrets"], BaseSettings):
# Add more secret fields as needed

model_config = SettingsConfigDict(
secrets_dir=get_secrets_path(),
env_file=".env",
env_file_encoding="utf-8",
extra="allow",
Expand All @@ -299,11 +298,3 @@ def save(self) -> None:
with open(config_path, "w") as f:
json.dump(config_to_save, f, indent=2)
self.config.clear_updates()

# Save updated secrets to individual files
secrets_dir = get_secrets_path()
for key in self.secrets.updated_fields:
secret_file = os.path.join(secrets_dir, key)
with open(secret_file, "w") as f:
f.write(str(getattr(self.secrets, key)))
self.secrets.clear_updates()
2 changes: 1 addition & 1 deletion autogpt_platform/backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "autogpt-platform-backend"
version = "0.3.0"
version = "0.3.1"
description = "A platform for building AI-powered agentic workflows"
authors = ["AutoGPT <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion autogpt_platform/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "0.3.0",
"version": "0.3.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

0 comments on commit 921b120

Please sign in to comment.