diff --git a/alembic/env.py b/alembic/env.py index 767b7bbd..8b60f2d4 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -20,7 +20,6 @@ if settings.letta_pg_uri_no_default: else: config.set_main_option("sqlalchemy.url", "sqlite:///" + os.path.join(letta_config.recall_storage_path, "sqlite.db")) -print(f"Using database: ", settings.letta_pg_uri, settings.letta_pg_uri_no_default) # Interpret the config file for Python logging. # This line sets up loggers basically. if config.config_file_name is not None: diff --git a/letta/__init__.py b/letta/__init__.py index e67194c6..388f3a66 100644 --- a/letta/__init__.py +++ b/letta/__init__.py @@ -3,7 +3,7 @@ __version__ = "0.6.7" # import clients from letta.client.client import LocalClient, RESTClient, create_client -# imports for easier access +# # imports for easier access from letta.schemas.agent import AgentState from letta.schemas.block import Block from letta.schemas.embedding_config import EmbeddingConfig diff --git a/letta/client/client.py b/letta/client/client.py index ae75e9eb..2657b8db 100644 --- a/letta/client/client.py +++ b/letta/client/client.py @@ -35,7 +35,6 @@ from letta.schemas.source import Source, SourceCreate, SourceUpdate from letta.schemas.tool import Tool, ToolCreate, ToolUpdate from letta.schemas.tool_rule import BaseToolRule from letta.server.rest_api.interface import QueuingInterface -from letta.server.server import SyncServer from letta.utils import get_human_text, get_persona_text @@ -2010,6 +2009,8 @@ class LocalClient(AbstractClient): debug (bool): Whether to print debug information. """ + from letta.server.server import SyncServer + # set logging levels letta.utils.DEBUG = debug logging.getLogger().setLevel(logging.CRITICAL) diff --git a/letta/functions/schema_generator.py b/letta/functions/schema_generator.py index 6f5bb52f..5ba9d2bf 100644 --- a/letta/functions/schema_generator.py +++ b/letta/functions/schema_generator.py @@ -3,7 +3,6 @@ from typing import Any, Dict, List, Optional, Type, Union, get_args, get_origin from docstring_parser import parse from pydantic import BaseModel -from pydantic.v1 import BaseModel as V1BaseModel def is_optional(annotation): diff --git a/letta/server/server.py b/letta/server/server.py index 9d6dd859..932e3c2c 100644 --- a/letta/server/server.py +++ b/letta/server/server.py @@ -180,6 +180,7 @@ def db_error_handler(): exit(1) +print("Creating engine", settings.letta_pg_uri) if settings.letta_pg_uri_no_default: config.recall_storage_type = "postgres" config.recall_storage_uri = settings.letta_pg_uri_no_default diff --git a/letta/server/static_files/index.html b/letta/server/static_files/index.html index 8819c00c..c7fb2c37 100644 --- a/letta/server/static_files/index.html +++ b/letta/server/static_files/index.html @@ -7,7 +7,7 @@ - +