This commit is contained in:
RainRat
2023-05-04 10:46:37 -07:00
committed by GitHub
parent b0163230a9
commit fad24b3525
3 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ class Agent:
self.ai_name = ai_name
self.memory = memory
self.summary_memory = (
"I was created." # Initial memory necessary to avoid hilucination
"I was created." # Initial memory necessary to avoid hallucination
)
self.last_memory_index = 0
self.full_message_history = full_message_history

View File

@@ -87,7 +87,7 @@ def update_running_summary(
elif event["role"] == "user":
new_events.remove(event)
# This can happen at any point during execturion, not just the beginning
# This can happen at any point during execution, not just the beginning
if len(new_events) == 0:
new_events = "Nothing new happened."

View File

@@ -7,7 +7,7 @@ from requests.compat import urljoin
def validate_url(func: Callable[..., Any]) -> Any:
"""The method decorator validate_url is used to validate urls for any command that requires
a url as an arugment"""
a url as an argument"""
@functools.wraps(func)
def wrapper(url: str, *args, **kwargs) -> Any: