aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/autogpt/app/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/autogpt/app/main.py')
-rw-r--r--autogpts/autogpt/autogpt/app/main.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/autogpts/autogpt/autogpt/app/main.py b/autogpts/autogpt/autogpt/app/main.py
index 976ecfabf..30ab1120f 100644
--- a/autogpts/autogpt/autogpt/app/main.py
+++ b/autogpts/autogpt/autogpt/app/main.py
@@ -94,6 +94,12 @@ async def run_auto_gpt(
)
file_storage.initialize()
+ # Set up logging module
+ configure_logging(
+ **config.logging.dict(),
+ tts_config=config.tts_config,
+ )
+
# TODO: fill in llm values here
assert_config_has_openai_api_key(config)
@@ -116,12 +122,6 @@ async def run_auto_gpt(
skip_news=skip_news,
)
- # Set up logging module
- configure_logging(
- **config.logging.dict(),
- tts_config=config.tts_config,
- )
-
llm_provider = _configure_openai_provider(config)
logger = logging.getLogger(__name__)
@@ -373,7 +373,6 @@ async def run_auto_gpt_server(
from .agent_protocol_server import AgentProtocolServer
config = ConfigBuilder.build_config_from_env()
-
# Storage
local = config.file_storage_backend == FileStorageBackendName.LOCAL
restrict_to_root = not local or config.restrict_to_workspace
@@ -382,6 +381,12 @@ async def run_auto_gpt_server(
)
file_storage.initialize()
+ # Set up logging module
+ configure_logging(
+ **config.logging.dict(),
+ tts_config=config.tts_config,
+ )
+
# TODO: fill in llm values here
assert_config_has_openai_api_key(config)
@@ -398,12 +403,6 @@ async def run_auto_gpt_server(
allow_downloads=allow_downloads,
)
- # Set up logging module
- configure_logging(
- **config.logging.dict(),
- tts_config=config.tts_config,
- )
-
llm_provider = _configure_openai_provider(config)
if install_plugin_deps: