diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/app/main.py')
-rw-r--r-- | autogpts/autogpt/autogpt/app/main.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/autogpts/autogpt/autogpt/app/main.py b/autogpts/autogpt/autogpt/app/main.py index 6c428ca6e..4a2c6927a 100644 --- a/autogpts/autogpt/autogpt/app/main.py +++ b/autogpts/autogpt/autogpt/app/main.py @@ -95,8 +95,13 @@ async def run_auto_gpt( file_storage.initialize() # Set up logging module + if speak: + config.tts_config.speak_mode = True configure_logging( - **config.logging.dict(), + debug=debug, + level=log_level, + log_format=log_format, + log_file_format=log_file_format, tts_config=config.tts_config, ) @@ -110,11 +115,6 @@ async def run_auto_gpt( ai_settings_file=ai_settings, prompt_settings_file=prompt_settings, skip_reprompt=skip_reprompt, - speak=speak, - debug=debug, - log_level=log_level, - log_format=log_format, - log_file_format=log_file_format, gpt3only=gpt3only, gpt4only=gpt4only, browser_name=browser_name, @@ -380,7 +380,10 @@ async def run_auto_gpt_server( # Set up logging module configure_logging( - **config.logging.dict(), + debug=debug, + level=log_level, + log_format=log_format, + log_file_format=log_file_format, tts_config=config.tts_config, ) @@ -390,10 +393,6 @@ async def run_auto_gpt_server( apply_overrides_to_config( config=config, prompt_settings_file=prompt_settings, - debug=debug, - log_level=log_level, - log_format=log_format, - log_file_format=log_file_format, gpt3only=gpt3only, gpt4only=gpt4only, browser_name=browser_name, |