From cfc7f46d13212bae47ce933f628b358c8b030129 Mon Sep 17 00:00:00 2001 From: vinayak-revelation <147894203+vinayak-revelation@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:07:15 -0800 Subject: [PATCH 1/6] Update python_client.md (#772) Tested this and it works. The API supports "human" and not "person" as previously stated. --- docs/python_client.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/python_client.md b/docs/python_client.md index cc47b1ec..c5f63c12 100644 --- a/docs/python_client.md +++ b/docs/python_client.md @@ -21,7 +21,7 @@ client = MemGPT( agent_id = client.create_agent( agent_config={ "persona": "sam_pov", - "user": "cs_phd", + "human": "cs_phd", } ) From 0609f229f610963a95faff62aabb057b23f73a04 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Wed, 3 Jan 2024 00:13:27 -0800 Subject: [PATCH 2/6] fix: Update memgpt_coder_autogen.ipynb (#775) * Update memgpt_coder_autogen.ipynb * Update memgpt_coder_autogen.ipynb * Update memgpt_coder_autogen.ipynb --- memgpt/autogen/examples/memgpt_coder_autogen.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/memgpt/autogen/examples/memgpt_coder_autogen.ipynb b/memgpt/autogen/examples/memgpt_coder_autogen.ipynb index 2d2ac54e..e9a7c94e 100644 --- a/memgpt/autogen/examples/memgpt_coder_autogen.ipynb +++ b/memgpt/autogen/examples/memgpt_coder_autogen.ipynb @@ -86,6 +86,7 @@ " \"model_endpoint_type\": \"openai\",\n", " \"model_endpoint\": \"https://api.openai.com/v1\",\n", " \"context_window\": 8192, # gpt-4 context window\n", + " \"openai_key\": OPENAI_API_KEY,\n", " },\n", "]\n", "llm_config_memgpt = {\"config_list\": config_list_memgpt, \"seed\": 42}" From 4f29b2d1af0d91b0f60a7ff048967a44ced792ab Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Wed, 3 Jan 2024 15:05:01 -0800 Subject: [PATCH 3/6] bump version 0.2.11 (#777) --- memgpt/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/memgpt/__init__.py b/memgpt/__init__.py index 291375d8..9f79c1ac 100644 --- a/memgpt/__init__.py +++ b/memgpt/__init__.py @@ -1,3 +1,3 @@ -__version__ = "0.2.10" +__version__ = "0.2.11" from memgpt.client.client import Client as MemGPT diff --git a/pyproject.toml b/pyproject.toml index 7ebfe3b2..83c16852 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pymemgpt" -version = "0.2.10" +version = "0.2.11" packages = [ {include = "memgpt"} ] From 21c69debca19905b2ca816c6ee3da39d208f6b24 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Wed, 3 Jan 2024 15:06:47 -0800 Subject: [PATCH 4/6] correct context window for dolph mixtral (#778) --- configs/memgpt_hosted.json | 2 +- memgpt/configs/memgpt_hosted.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/memgpt_hosted.json b/configs/memgpt_hosted.json index b75ceabd..c1203b48 100644 --- a/configs/memgpt_hosted.json +++ b/configs/memgpt_hosted.json @@ -1,5 +1,5 @@ { - "context_window": 32768, + "context_window": 16384, "model": "ehartford/dolphin-2.5-mixtral-8x7b", "model_endpoint_type": "vllm", "model_endpoint": "https://api.memgpt.ai", diff --git a/memgpt/configs/memgpt_hosted.json b/memgpt/configs/memgpt_hosted.json index b75ceabd..c1203b48 100644 --- a/memgpt/configs/memgpt_hosted.json +++ b/memgpt/configs/memgpt_hosted.json @@ -1,5 +1,5 @@ { - "context_window": 32768, + "context_window": 16384, "model": "ehartford/dolphin-2.5-mixtral-8x7b", "model_endpoint_type": "vllm", "model_endpoint": "https://api.memgpt.ai", From 8ae632fd6f9bb4c0e48cc49a52201bd9a37318a4 Mon Sep 17 00:00:00 2001 From: ifsheldon <39153080+ifsheldon@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:01:41 +0800 Subject: [PATCH 5/6] fix invalid entry in response dict (#780) --- docs/python_client.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/python_client.md b/docs/python_client.md index c5f63c12..7ca87c05 100644 --- a/docs/python_client.md +++ b/docs/python_client.md @@ -81,7 +81,7 @@ def send_message(message: str): # Can also handle other types "function_call", "function_return", "function_message" if "assistant_message" in r: print("ASSISTANT:", r["assistant_message"]) - elif "thoughts" in r: + elif "internal_monologue" in r: print("THOUGHTS:", r["internal_monologue"]) # Send a message and see the response From 14351bac336549ea06f71408475634c9ad35222d Mon Sep 17 00:00:00 2001 From: ifsheldon <39153080+ifsheldon@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:06:48 +0800 Subject: [PATCH 6/6] Fix 'dict' object has no attribute 'name' (#781) --- memgpt/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memgpt/client/client.py b/memgpt/client/client.py index 8f46fb0b..0bc72451 100644 --- a/memgpt/client/client.py +++ b/memgpt/client/client.py @@ -83,9 +83,9 @@ class Client(object): return self.server.create_agent(user_id=self.user_id, agent_config=agent_config, persistence_manager=persistence_manager) if throw_if_exists: - raise ValueError(f"Agent {agent_config.name} already exists") + raise ValueError(f"Agent {agent_name} already exists") - return agent_config.name + return agent_name def get_agent_config(self, agent_id: str) -> Dict: self.interface.clear()