Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Update openai_tools.py to use delay (#159)
tractorjuice908e6d2dcd04
diff --git a/memgpt/openai_tools.py b/memgpt/openai_tools.pyindex bb4f7f7a9..29f789ac1 100644--- a/memgpt/openai_tools.py+++ b/memgpt/openai_tools.py@@ -47,7 +47,7 @@ def retry_with_exponential_backoff(delay *= exponential_base * (1 + jitter * random.random())# Sleep for the delay- time.sleep(62)+ time.sleep(delay)# Raise exceptions for any errors not specifiedexcept Exception as e:@@ -108,7 +108,7 @@ def aretry_with_exponential_backoff(delay *= exponential_base * (1 + jitter * random.random())# Sleep for the delay- await asyncio.sleep(62)+ await asyncio.sleep(delay)# Raise exceptions for any errors not specifiedexcept Exception as e: