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

fix: Update app.py - setup_auth_router() #2369

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
12 changes: 1 addition & 11 deletions letta/server/rest_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@
server = SyncServer(default_interface_factory=lambda: interface())
logger = get_logger(__name__)

# TODO: remove
password = None
## TODO(ethan): eventuall remove
JindrichSima marked this conversation as resolved.
Show resolved Hide resolved
# if password := settings.server_pass:
# # if the pass was specified in the environment, use it
# print(f"Using existing admin server password from environment.")
# else:
# # Autogenerate a password for this session and dump it to stdout
# password = secrets.token_urlsafe(16)
# #typer.secho(f"Generated admin server password for this session: {password}", fg=typer.colors.GREEN)

import logging

Expand Down Expand Up @@ -254,7 +244,7 @@ async def bedrock_permission_error_handler(request, exc: BedrockPermissionError)
app.include_router(openai_chat_completions_router, prefix=OPENAI_API_PREFIX)

# /api/auth endpoints
app.include_router(setup_auth_router(server, interface, password), prefix=API_PREFIX)
app.include_router(setup_auth_router(server, interface, random_password), prefix=API_PREFIX)

# / static files
mount_static_files(app)
Expand Down