Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 4, 2024
1 parent 8766502 commit 4907d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/ee/danswer/server/tenants/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
from ee.danswer.server.tenants.models import ImpersonateRequest
from ee.danswer.server.tenants.models import ProductGatingRequest
from ee.danswer.server.tenants.provisioning import add_users_to_tenant
from ee.danswer.server.tenants.provisioning import configure_default_api_keys
from ee.danswer.server.tenants.provisioning import ensure_schema_exists
from ee.danswer.server.tenants.provisioning import run_alembic_migrations
from ee.danswer.server.tenants.provisioning import setup_api_keys
from ee.danswer.server.tenants.provisioning import user_owns_a_tenant
from shared_configs.configs import MULTI_TENANT
from shared_configs.contextvars import CURRENT_TENANT_ID_CONTEXTVAR
Expand Down Expand Up @@ -68,7 +68,7 @@ def create_tenant(
with get_session_with_tenant(tenant_id) as db_session:
setup_danswer(db_session, tenant_id)

setup_api_keys(db_session)
configure_default_api_keys(db_session)

add_users_to_tenant([email], tenant_id)

Expand Down
2 changes: 1 addition & 1 deletion backend/ee/danswer/server/tenants/provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run_alembic_migrations(schema_name: str) -> None:
raise


def setup_api_keys(db_session: Session) -> None:
def configure_default_api_keys(db_session: Session) -> None:
open_provider = LLMProviderUpsertRequest(
name="OpenAI",
provider="OpenAI",
Expand Down

0 comments on commit 4907d22

Please sign in to comment.