Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Hotfix openai create all with context_window kwarg (#413)
Vivian Fang05aeaf1927ee
diff --git a/memgpt/openai_tools.py b/memgpt/openai_tools.pyindex 60eeb331a..fce7d7960 100644--- a/memgpt/openai_tools.py+++ b/memgpt/openai_tools.py@@ -70,6 +70,8 @@ def completions_with_backoff(**kwargs):else:kwargs["engine"] = MODEL_TO_AZURE_ENGINE[kwargs["model"]]kwargs.pop("model")+ if "context_window" in kwargs:+ kwargs.pop("context_window")return openai.ChatCompletion.create(**kwargs)