Skip to content

Commit

Permalink
add config back to Agent.history init
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Jun 25, 2024
1 parent 75c45c0 commit be9daed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autogpt/autogpt/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
ActionHistoryComponent,
EpisodicActionHistory,
)
from forge.components.action_history.action_history import ActionHistoryConfiguration
from forge.components.code_executor.code_executor import (
CodeExecutorComponent,
CodeExecutorConfiguration,
Expand Down Expand Up @@ -115,6 +116,9 @@ def __init__(
settings.history,
lambda x: self.llm_provider.count_tokens(x, self.llm.name),
llm_provider,
ActionHistoryConfiguration(
model_name=app_config.fast_llm, max_tokens=self.send_token_limit
)
)
.run_after(WatchdogComponent)
.run_after(SystemComponent)
Expand Down

0 comments on commit be9daed

Please sign in to comment.