Skip to content

Commit

Permalink
fix(agent): Logging hotfix (Significant-Gravitas#7096)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcze authored Apr 22, 2024
1 parent a74548d commit 0704404
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions autogpts/autogpt/autogpt/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from autogpt.core.resource.model_providers.openai import OpenAIProvider
from autogpt.core.runner.client_lib.utils import coroutine
from autogpt.file_storage import FileStorageBackendName, get_storage
from autogpt.logs.config import configure_chat_plugins, configure_logging
from autogpt.logs.config import LoggingConfig, configure_chat_plugins, configure_logging
from autogpt.logs.helpers import print_attribute, speak
from autogpt.models.action_history import ActionInterruptedByHuman
from autogpt.plugins import scan_plugins
Expand Down Expand Up @@ -486,13 +486,12 @@ async def run_interaction_loop(
legacy_config = agent.legacy_config
ai_profile = agent.ai_profile
logger = logging.getLogger(__name__)
config = LoggingConfig.from_env()

cycle_budget = cycles_remaining = _get_cycle_budget(
legacy_config.continuous_mode, legacy_config.continuous_limit
)
spinner = Spinner(
"Thinking...", plain_output=legacy_config.logging.plain_console_output
)
spinner = Spinner("Thinking...", plain_output=config.plain_console_output)
stop_reason = None

def graceful_agent_interrupt(signum: int, frame: Optional[FrameType]) -> None:
Expand Down

0 comments on commit 0704404

Please sign in to comment.