From a0e8cb2fc6e0a99f383f5de2ec036e62ee2a969b Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Thu, 8 Feb 2024 12:12:45 -0800 Subject: [PATCH 1/2] Update bug_report.md to request ~/.memgpt/config --- .github/ISSUE_TEMPLATE/bug_report.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d9fa4b0cb2..34088355db 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -11,9 +11,6 @@ assignees: '' A clear and concise description of what the bug is. **Please describe your setup** - -- [ ] MemGPT version - - What is the output of `memgpt version`? (eg "0.2.4") - [ ] How did you install memgpt? - `pip install pymemgpt`? `pip install pymemgpt-nightly`? `git clone`? - [ ] Describe your setup @@ -26,6 +23,9 @@ If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here. +**MemGPT Config** +Please attach your `~/.memgpt/config` file or copy past it below. + --- If you're not using OpenAI, please provide additional information on your local LLM setup: From 2cf2ca3fa88fa70094dffc88e4058eae39c70897 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Thu, 8 Feb 2024 12:17:28 -0800 Subject: [PATCH 2/2] Allow text field to be None of system/tool roles --- memgpt/data_types.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/memgpt/data_types.py b/memgpt/data_types.py index 1f1fdc2ee0..aeaf159a3a 100644 --- a/memgpt/data_types.py +++ b/memgpt/data_types.py @@ -226,7 +226,7 @@ def to_openai_dict(self): # TODO change to pydantic casting, eg `return SystemMessageModel(self)` if self.role == "system": - assert all([v is not None for v in [self.text, self.role]]), vars(self) + assert all([v is not None for v in [self.role]]), vars(self) openai_message = { "content": self.text, "role": self.role, @@ -258,13 +258,12 @@ def to_openai_dict(self): openai_message["tool_calls"] = [tool_call.to_dict() for tool_call in self.tool_calls] elif self.role == "tool": - assert all([v is not None for v in [self.text, self.role, self.tool_call_id]]), vars(self) + assert all([v is not None for v in [self.role, self.tool_call_id]]), vars(self) openai_message = { "content": self.text, "role": self.role, "tool_call_id": self.tool_call_id, } - else: raise ValueError(self.role)