Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add defaults to compose and .env.example #1792

Merged
merged 3 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
##########################################################
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


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


##########################################################
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
6 changes: 3 additions & 3 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ services:
- LETTA_LLM_ENDPOINT=${LETTA_LLM_ENDPOINT}
- LETTA_LLM_ENDPOINT_TYPE=${LETTA_LLM_ENDPOINT_TYPE}
- LETTA_LLM_MODEL=${LETTA_LLM_MODEL:-gpt-4}
- LETTA_LLM_CONTEXT_WINDOW=${LETTA_LLM_CONTEXT_WINDOW}
- LETTA_LLM_CONTEXT_WINDOW=${LETTA_LLM_CONTEXT_WINDOW:-8192}
- LETTA_EMBEDDING_ENDPOINT=${LETTA_EMBEDDING_ENDPOINT}
- LETTA_EMBEDDING_ENDPOINT_TYPE=${LETTA_EMBEDDING_ENDPOINT_TYPE}
- LETTA_EMBEDDING_DIM=${LETTA_EMBEDDING_DIM}
- LETTA_EMBEDDING_MODEL=${LETTA_EMBEDDING_MODEL}
- LETTA_EMBEDDING_DIM=${LETTA_EMBEDDING_DIM:-1536}
- LETTA_EMBEDDING_MODEL=${LETTA_EMBEDDING_MODEL:-text-embedding-ada-002}
- LETTA_DEBUG=True
- OPENAI_API_KEY=${OPENAI_API_KEY}
#volumes:
Expand Down
4 changes: 3 additions & 1 deletion docs/generate_docs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os

from pydoc_markdown import PydocMarkdown

Check failure on line 3 in docs/generate_docs.py

View workflow job for this annotation

GitHub Actions / Pyright types check (3.11)

Import "pydoc_markdown" could not be resolved (reportMissingImports)
from pydoc_markdown.contrib.loaders.python import PythonLoader

Check failure on line 4 in docs/generate_docs.py

View workflow job for this annotation

GitHub Actions / Pyright types check (3.11)

Import "pydoc_markdown.contrib.loaders.python" could not be resolved (reportMissingImports)
from pydoc_markdown.contrib.processors.crossref import CrossrefProcessor

Check failure on line 5 in docs/generate_docs.py

View workflow job for this annotation

GitHub Actions / Pyright types check (3.11)

Import "pydoc_markdown.contrib.processors.crossref" could not be resolved (reportMissingImports)
from pydoc_markdown.contrib.processors.filter import FilterProcessor
from pydoc_markdown.contrib.processors.smart import SmartProcessor
from pydoc_markdown.contrib.renderers.markdown import MarkdownRenderer
Expand All @@ -26,7 +26,9 @@
return modules


folder = "/Users/sarahwooders/repos/mintlify-docs/python-reference"
# get PYTHON_DOC_DIR from environment
folder = os.getenv("PYTHON_DOC_DIR")
assert folder is not None, "PYTHON_DOC_DIR environment variable must be set"


# Generate client documentation. This takes the documentation from the AbstractClient, but then appends the documentation from the LocalClient and RESTClient.
Expand Down
Loading