Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzh72 committed Jan 21, 2025
2 parents 35be3bd + 13ec139 commit d533813
Show file tree
Hide file tree
Showing 289 changed files with 19,606 additions and 15,287 deletions.
10 changes: 9 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
chatui
**/__pycache__
**/.pytest_cache
**/*.pyc
**/*.pyo
**/*.pyd
.git
.gitignore
.env
*.log
29 changes: 3 additions & 26 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,20 @@
Example enviornment variable configurations for the Letta
Docker container. Un-coment the sections you want to
configure with.

Hint: You don't need to have the same LLM and
Embedding model backends (can mix and match).
##########################################################


##########################################################
OpenAI configuration
##########################################################
## LLM Model
#LETTA_LLM_ENDPOINT_TYPE=openai
#LETTA_LLM_MODEL=gpt-4o-mini
## Embeddings
#LETTA_EMBEDDING_ENDPOINT_TYPE=openai
#LETTA_EMBEDDING_MODEL=text-embedding-ada-002

# OPENAI_API_KEY=sk-...

##########################################################
Ollama configuration
##########################################################
## LLM Model
#LETTA_LLM_ENDPOINT=http://host.docker.internal:11434
#LETTA_LLM_ENDPOINT_TYPE=ollama
#LETTA_LLM_MODEL=dolphin2.2-mistral:7b-q6_K
#LETTA_LLM_CONTEXT_WINDOW=8192
## Embeddings
#LETTA_EMBEDDING_ENDPOINT=http://host.docker.internal:11434
#LETTA_EMBEDDING_ENDPOINT_TYPE=ollama
#LETTA_EMBEDDING_MODEL=mxbai-embed-large
#LETTA_EMBEDDING_DIM=512

# OLLAMA_BASE_URL="http://host.docker.internal:11434"

##########################################################
vLLM configuration
##########################################################
## LLM Model
#LETTA_LLM_ENDPOINT=http://host.docker.internal:8000
#LETTA_LLM_ENDPOINT_TYPE=vllm
#LETTA_LLM_MODEL=ehartford/dolphin-2.2.1-mistral-7b
#LETTA_LLM_CONTEXT_WINDOW=8192
# VLLM_API_BASE="http://host.docker.internal:8000"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem.
Add any other context about the problem here.

**Letta Config**
Please attach your `~/.letta/config` file or copy past it below.
Please attach your `~/.letta/config` file or copy paste it below.

---

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/Letta/issues) or [PRs](https://github.com/cpacker/Letta/pulls).
Please link any related GitHub [issues](https://github.com/letta-ai/letta/issues) or [PRs](https://github.com/letta-ai/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
22 changes: 22 additions & 0 deletions .github/workflows/close_stale_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/code_style_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.8.2"
install-args: "-E dev -E postgres -E milvus -E external-tools -E tests" # Adjust as necessary
install-args: "-E dev -E postgres -E external-tools -E tests" # Adjust as necessary

- name: Validate PR Title
if: github.event_name == 'pull_request'
Expand Down
37 changes: 20 additions & 17 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
workflow_dispatch:

jobs:

build:

runs-on: ubuntu-latest

steps:
Expand All @@ -19,19 +17,24 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: actions/checkout@v3
- name: Build and push the Docker image (memgpt)
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/letta:$CURRENT_VERSION --tag memgpt/letta:latest
docker push memgpt/letta:$CURRENT_VERSION
docker push memgpt/letta:latest

- uses: actions/checkout@v3
- name: Build and push the Docker image (letta)
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 letta/letta:$CURRENT_VERSION --tag letta/letta:latest
docker push letta/letta:$CURRENT_VERSION
docker push letta/letta:latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Extract version number
id: extract_version
run: echo "CURRENT_VERSION=$(awk -F '\"' '/version =/ { print $2 }' pyproject.toml | head -n 1)" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
letta/letta:${{ env.CURRENT_VERSION }}
letta/letta:latest
memgpt/letta:${{ env.CURRENT_VERSION }}
memgpt/letta:latest
78 changes: 0 additions & 78 deletions .github/workflows/integration_tests.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/letta-code-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Sync Code

on:
push:
branches:
- main

jobs:
notify:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[sync-skip]') }}
steps:
- name: Trigger repository_dispatch
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.SYNC_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/letta-ai/letta-cloud/dispatches \
-d '{"event_type":"oss-update"}'
42 changes: 0 additions & 42 deletions .github/workflows/letta-web-openapi-saftey.yml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/letta-web-safety.yml

This file was deleted.

Loading

0 comments on commit d533813

Please sign in to comment.