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.
fix(server): enable other methods of setting configs outside of the config.json file (#7645)
Nicholas Tindleca7182403b3b
diff --git a/rnd/autogpt_server/autogpt_server/util/settings.py b/rnd/autogpt_server/autogpt_server/util/settings.pyindex a309b04357..6c00c25271 100644--- a/rnd/autogpt_server/autogpt_server/util/settings.py+++ b/rnd/autogpt_server/autogpt_server/util/settings.py@@ -61,7 +61,6 @@ class Config(UpdateTrackingModel["Config"], BaseSettings):get_config_path() / "config.json",],env_file=".env",- env_file_encoding="utf-8",extra="allow",)@@ -74,7 +73,13 @@ class Config(UpdateTrackingModel["Config"], BaseSettings):dotenv_settings: PydanticBaseSettingsSource,file_secret_settings: PydanticBaseSettingsSource,) -> Tuple[PydanticBaseSettingsSource, ...]:- return (JsonConfigSettingsSource(settings_cls),)+ return (+ env_settings,+ file_secret_settings,+ dotenv_settings,+ JsonConfigSettingsSource(settings_cls),+ init_settings,+ )class Secrets(UpdateTrackingModel["Secrets"], BaseSettings):