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/docs/python_client.md b/docs/python_client.md index cc47b1ec..7ca87c05 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", } ) @@ -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 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/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}" diff --git a/memgpt/client/client.py b/memgpt/client/client.py index d9c80e3c..0bc72451 100644 --- a/memgpt/client/client.py +++ b/memgpt/client/client.py @@ -83,7 +83,7 @@ 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_name 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", diff --git a/pyproject.toml b/pyproject.toml index c9567926..8d596693 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"} ]