diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc2225bb..99da8521 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -71,4 +71,3 @@ jobs: LETTA_SERVER_PASS: test_server_token run: | poetry run pytest -s -vv tests/test_server.py - diff --git a/README.md b/README.md index a0b4769b..42cf4b4e 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@ [![Twitter Follow](https://img.shields.io/badge/follow-%40Letta-1DA1F2?style=flat-square&logo=x&logoColor=white)](https://twitter.com/Letta_AI) [![arxiv 2310.08560](https://img.shields.io/badge/arXiv-2310.08560-B31B1B?logo=arxiv&style=flat-square)](https://arxiv.org/abs/2310.08560) -> [!NOTE] +> [!NOTE] > **Looking for MemGPT?** -> +> > The MemGPT package and Docker image have been renamed to `letta` to clarify the distinction between **MemGPT agents** and the API server / runtime that runs LLM agents as *services*. -> +> > You use the **Letta framework** to create **MemGPT agents**. Read more about the relationship between MemGPT and Letta [here](https://www.letta.com/blog/memgpt-and-letta). -See [documentation](https://docs.letta.com/introduction) for setup and usage. +See [documentation](https://docs.letta.com/introduction) for setup and usage. ## How to Get Involved * **Contribute to the Project**: Interested in contributing? Start by reading our [Contribution Guidelines](https://github.com/cpacker/MemGPT/tree/main/CONTRIBUTING.md). diff --git a/examples/helper.py b/examples/helper.py index ade92fb2..7fc15bf8 100644 --- a/examples/helper.py +++ b/examples/helper.py @@ -1,23 +1,25 @@ # Add your utilities or helper functions to this file. -import os -from dotenv import load_dotenv, find_dotenv -from IPython.display import display, HTML -import json import html +import json +import os import re -# these expect to find a .env file at the directory above the lesson. # the format for that file is (without the comment) #API_KEYNAME=AStringThatIsTheLongAPIKeyFromSomeService +from dotenv import find_dotenv, load_dotenv +from IPython.display import HTML, display + + +# these expect to find a .env file at the directory above the lesson. # the format for that file is (without the comment) #API_KEYNAME=AStringThatIsTheLongAPIKeyFromSomeService def load_env(): _ = load_dotenv(find_dotenv()) + def get_openai_api_key(): load_env() openai_api_key = os.getenv("OPENAI_API_KEY") return openai_api_key - def nb_print(messages): html_output = """