Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: add correct dependencies and missing variable (#1638)
Robin Goetz1dfadcb21f51
diff --git a/memgpt/llm_api/openai.py b/memgpt/llm_api/openai.pyindex e7001d63e..653d3f14a 100644--- a/memgpt/llm_api/openai.py+++ b/memgpt/llm_api/openai.py@@ -252,7 +252,7 @@ def _sse_post(url: str, data: dict, headers: dict) -> Generator[ChatCompletionCh# Inspect for errors before iterating (see https://github.com/florimondmanca/httpx-sse/pull/12)if not event_source.response.is_success:# handle errors- from utils import printd+ from memgpt.utils import printdprintd("Caught error before iterating SSE request:", vars(event_source.response))printd(event_source.response.read())diff --git a/memgpt/server/rest_api/agents/message.py b/memgpt/server/rest_api/agents/message.pyindex 5568e7705..ab5e41b1e 100644--- a/memgpt/server/rest_api/agents/message.py+++ b/memgpt/server/rest_api/agents/message.py@@ -95,6 +95,7 @@ async def send_message_to_agent() -> Union[StreamingResponse, UserMessageResponse]:"""Split off into a separate function so that it can be imported in the /chat/completion proxy."""+ include_final_message = True# handle the legacy mode streamingif stream_legacy:# NOTE: override