Merge branch 'main' into cherry-pick-storage-refactor

This commit is contained in:
cpacker
2024-01-04 13:11:01 -08:00
7 changed files with 8 additions and 7 deletions

View File

@@ -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",

View File

@@ -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

View File

@@ -1,3 +1,3 @@
__version__ = "0.2.10"
__version__ = "0.2.11"
from memgpt.client.client import Client as MemGPT

View File

@@ -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}"

View File

@@ -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

View File

@@ -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",

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "pymemgpt"
version = "0.2.10"
version = "0.2.11"
packages = [
{include = "memgpt"}
]