Skip to content

Commit

Permalink
chore: migrate package name to letta (#1775)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Packer <[email protected]>
Co-authored-by: Shubham Naik <[email protected]>
Co-authored-by: Shubham Naik <[email protected]>
  • Loading branch information
4 people authored Sep 23, 2024
1 parent f0bc648 commit 85faf5f
Show file tree
Hide file tree
Showing 337 changed files with 5,536 additions and 6,803 deletions.
7 changes: 0 additions & 7 deletions .env.example

This file was deleted.

12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@ assignees: ''
A clear and concise description of what the bug is.

**Please describe your setup**
- [ ] How did you install memgpt?
- `pip install pymemgpt`? `pip install pymemgpt-nightly`? `git clone`?
- [ ] How did you install letta?
- `pip install letta`? `pip install letta-nightly`? `git clone`?
- [ ] Describe your setup
- What's your OS (Windows/MacOS/Linux)?
- How are you running `memgpt`? (`cmd.exe`/Powershell/Anaconda Shell/Terminal)
- How are you running `letta`? (`cmd.exe`/Powershell/Anaconda Shell/Terminal)

**Screenshots**
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.
**Letta Config**
Please attach your `~/.letta/config` file or copy past it below.

---

If you're not using OpenAI, please provide additional information on your local LLM setup:

**Local LLM details**

If you are trying to run MemGPT with local LLMs, please provide the following information:
If you are trying to run Letta with local LLMs, please provide the following information:

- [ ] The exact model you're trying to use (e.g. `dolphin-2.1-mistral-7b.Q6_K.gguf`)
- [ ] The local LLM backend you are using (web UI? LM Studio?)
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ How can we test your PR during review? What commands should we run? What outcome
Have you tested the latest commit on the PR? If so please provide outputs from your tests.

**Related issues or PRs**
Please link any related GitHub [issues](https://github.com/cpacker/MemGPT/issues) or [PRs](https://github.com/cpacker/MemGPT/pulls).
Please link any related GitHub [issues](https://github.com/cpacker/Letta/issues) or [PRs](https://github.com/cpacker/Letta/pulls).

**Is your PR over 500 lines of code?**
If so, please break up your PR into multiple smaller PRs so that we can review them quickly, or provide justification for its length.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
run: |
# Extract the version number from pyproject.toml using awk
CURRENT_VERSION=$(awk -F '"' '/version =/ { print $2 }' pyproject.toml | head -n 1)
docker build . --file Dockerfile --tag memgpt/memgpt-server:$CURRENT_VERSION --tag memgpt/memgpt-server:latest
docker push memgpt/memgpt-server:$CURRENT_VERSION
docker push memgpt/memgpt-server:latest
docker build . --file Dockerfile --tag lettaai/letta:$CURRENT_VERSION --tag lettaai/letta:latest
docker push lettaai/letta:$CURRENT_VERSION
docker push lettaai/letta:latest
27 changes: 13 additions & 14 deletions .github/workflows/docker-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ jobs:

- name: Set permissions for log directory
run: |
mkdir -p /home/runner/.memgpt/logs
sudo chown -R $USER:$USER /home/runner/.memgpt/logs
chmod -R 755 /home/runner/.memgpt/logs
mkdir -p /home/runner/.letta/logs
sudo chown -R $USER:$USER /home/runner/.letta/logs
chmod -R 755 /home/runner/.letta/logs
- name: Build and run docker dev server
env:
MEMGPT_PG_DB: memgpt
MEMGPT_PG_USER: memgpt
MEMGPT_PG_PASSWORD: memgpt
MEMGPT_PG_PORT: 8888
MEMGPT_SERVER_PASS: test_server_token
LETTA_PG_DB: letta
LETTA_PG_USER: letta
LETTA_PG_PASSWORD: letta
LETTA_PG_PORT: 8888
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

run: docker compose -f dev-compose.yaml up --build -d
Expand All @@ -46,12 +45,12 @@ jobs:

- name: Run tests with pytest
env:
MEMGPT_PG_DB: memgpt
MEMGPT_PG_USER: memgpt
MEMGPT_PG_PASSWORD: memgpt
MEMGPT_PG_PORT: 8888
MEMGPT_SERVER_PASS: test_server_token
MEMGPT_SERVER_URL: http://localhost:8083
LETTA_PG_DB: letta
LETTA_PG_USER: letta
LETTA_PG_PASSWORD: letta
LETTA_PG_PORT: 8888
LETTA_SERVER_PASS: test_server_token
LETTA_SERVER_URL: http://localhost:8083
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PYTHONPATH: ${{ github.workspace }}:${{ env.PYTHONPATH }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/poetry-publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
NIGHTLY_VERSION="${CURRENT_VERSION}.dev$(date +%Y%m%d%H%M%S)"
# Overwrite pyproject.toml with nightly config
sed -i "0,/version = \"${CURRENT_VERSION}\"/s//version = \"${NIGHTLY_VERSION}\"/" pyproject.toml
sed -i 's/name = "pymemgpt"/name = "pymemgpt-nightly"/g' pyproject.toml
sed -i "s/__version__ = '.*'/__version__ = '${NIGHTLY_VERSION}'/g" memgpt/__init__.py
sed -i 's/name = "letta"/name = "letta-nightly"/g' pyproject.toml
sed -i "s/__version__ = '.*'/__version__ = '${NIGHTLY_VERSION}'/g" letta/__init__.py
cat pyproject.toml
cat memgpt/__init__.py
cat letta/__init__.py
- name: Configure poetry
env:
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/rdme-docs.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/rdme-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
rdme-openapi:
runs-on: ubuntu-latest
if: github.repository == 'cpacker/MemGPT' # TODO: if the repo org ever changes, this must be updated
if: github.repository == 'cpacker/Letta' # TODO: if the repo org ever changes, this must be updated
steps:
- name: Check out repo 📚
uses: actions/checkout@v4
Expand All @@ -31,16 +31,16 @@ jobs:

- name: Generate openapi.json file
run: |
poetry run memgpt quickstart
poetry run memgpt server &
poetry run letta quickstart
poetry run letta server &
CMD_PID=$!
sleep 5 # Wait for 5 seconds
kill -SIGINT $CMD_PID
- name: Run `openapi` command (file 1) 🚀
uses: readmeio/rdme@v8
with:
rdme: openapi openapi_memgpt.json --key=${{ secrets.README_API_KEY }} --id=6581305097523b004eedfd16
rdme: openapi openapi_letta.json --key=${{ secrets.README_API_KEY }} --id=6581305097523b004eedfd16

# - name: Run `openapi` command (file 2) 🚀
# uses: readmeio/rdme@v8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_anthropic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
poetry run memgpt quickstart --backend anthropic
poetry run letta quickstart --backend anthropic
- name: Test LLM endpoint
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_memgpt_hosted.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Endpoint (MemGPT)
name: Endpoint (Letta)

on:
push:
Expand All @@ -23,8 +23,8 @@ jobs:

- name: Test LLM endpoint
run: |
poetry run pytest -s -vv tests/test_endpoints.py::test_llm_endpoint_memgpt_hosted
poetry run pytest -s -vv tests/test_endpoints.py::test_llm_endpoint_letta_hosted
- name: Test embedding endpoint
run: |
poetry run pytest -s -vv tests/test_endpoints.py::test_embedding_endpoint_memgpt_hosted
poetry run pytest -s -vv tests/test_endpoints.py::test_embedding_endpoint_letta_hosted
2 changes: 1 addition & 1 deletion .github/workflows/test_openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run memgpt quickstart --backend openai
poetry run letta quickstart --backend openai
- name: Test LLM endpoint
env:
Expand Down
59 changes: 25 additions & 34 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Run All pytest Tests

env:
MEMGPT_PGURI: ${{ secrets.MEMGPT_PGURI }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

on:
Expand Down Expand Up @@ -36,48 +35,40 @@ jobs:
install-args: "-E dev -E postgres -E milvus -E crewai-tools"

- name: Initialize credentials
run: poetry run memgpt quickstart --backend openai
run: poetry run letta quickstart --backend openai

#- name: Run docker compose server
# env:
# MEMGPT_PG_DB: memgpt
# MEMGPT_PG_USER: memgpt
# MEMGPT_PG_PASSWORD: memgpt
# MEMGPT_SERVER_PASS: test_server_token
# MEMGPT_CONFIG_PATH: configs/server_config.yaml

# run: docker compose up -d
#
- name: Run tools tests
env:
MEMGPT_PG_PORT: 8888
MEMGPT_PG_USER: memgpt
MEMGPT_PG_PASSWORD: memgpt
MEMGPT_PG_DB: memgpt
MEMGPT_PG_HOST: localhost
MEMGPT_SERVER_PASS: test_server_token
LETTA_PG_PORT: 8888
LETTA_PG_USER: letta
LETTA_PG_PASSWORD: letta
LETTA_PG_DB: letta
LETTA_PG_HOST: localhost
LETTA_SERVER_PASS: test_server_token
run: |
poetry run pytest -s -vv tests/test_tools.py
- name: Run server tests
env:
MEMGPT_PG_PORT: 8888
MEMGPT_PG_USER: memgpt
MEMGPT_PG_PASSWORD: memgpt
MEMGPT_PG_DB: memgpt
MEMGPT_PG_HOST: localhost
MEMGPT_SERVER_PASS: test_server_token
run: |
poetry run pytest -s -vv tests/test_server.py
- name: Run tests with pytest
env:
MEMGPT_PG_PORT: 8888
MEMGPT_PG_USER: memgpt
MEMGPT_PG_PASSWORD: memgpt
MEMGPT_PG_HOST: localhost
MEMGPT_PG_DB: memgpt
MEMGPT_SERVER_PASS: test_server_token
LETTA_PG_PORT: 8888
LETTA_PG_USER: letta
LETTA_PG_PASSWORD: letta
LETTA_PG_HOST: localhost
LETTA_PG_DB: letta
LETTA_SERVER_PASS: test_server_token
PYTHONPATH: ${{ github.workspace }}:${{ env.PYTHONPATH }}
run: |
poetry run pytest -s -vv -k "not test_tools.py and not test_concurrent_connections.py and not test_quickstart and not test_endpoints and not test_storage and not test_server and not test_openai_client" tests
- name: Run server tests
env:
LETTA_PG_PORT: 8888
LETTA_PG_USER: letta
LETTA_PG_PASSWORD: letta
LETTA_PG_DB: letta
LETTA_PG_HOST: localhost
LETTA_SERVER_PASS: test_server_token
run: |
poetry run pytest -s -vv tests/test_server.py
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MemGPT config files
# Letta config files
configs/

# Below are generated by gitignor.io (toptal)
Expand Down Expand Up @@ -387,7 +387,7 @@ __pycache__/
.Python
develop-eggs/
downloads/
eggs#memgpt/memgpt-server:0.3.7
eggs#letta/letta-server:0.3.7
MANIFEST

# PyInstaller
Expand Down Expand Up @@ -1015,6 +1015,6 @@ pgdata/
.persist/

## pytest mirrors
memgpt/.pytest_cache/
letta/.pytest_cache/
memgpy/pytest.ini
**/**/pytest_cache
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ repos:
- id: check-yaml
exclude: 'docs/.*|tests/data/.*|configs/.*'
- id: end-of-file-fixer
exclude: 'docs/.*|tests/data/.*|memgpt/server/static_files/.*'
exclude: 'docs/.*|tests/data/.*|letta/server/static_files/.*'
- id: trailing-whitespace
exclude: 'docs/.*|tests/data/.*|memgpt/server/static_files/.*'
exclude: 'docs/.*|tests/data/.*|letta/server/static_files/.*'

- repo: local
hooks:
Expand Down
Loading

0 comments on commit 85faf5f

Please sign in to comment.