diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py index 3970542..cbd9250 100644 --- a/backend/routes/generate_code.py +++ b/backend/routes/generate_code.py @@ -105,10 +105,9 @@ async def stream_code(websocket: WebSocket): raise Exception("No auth token") # Get the OpenAI key by waterfalling through the different payment methods - # 1. Subcription - # 2. Access code - # 3. User's API key from client-side settings dialog - # 4. User's API key from environment variable + # 1. Subscription + # 2. User's API key from client-side settings dialog + # 3. User's API key from environment variable # If the user is a subscriber, use the platform API key # TODO: Rename does_user_have_subscription_credits diff --git a/backend/routes/logging_utils.py b/backend/routes/logging_utils.py index bf2cdad..052d417 100644 --- a/backend/routes/logging_utils.py +++ b/backend/routes/logging_utils.py @@ -13,7 +13,6 @@ class PaymentMethod(Enum): UNKNOWN = "unknown" OPENAI_API_KEY = "openai_api_key" SUBSCRIPTION = "subscription" - ACCESS_CODE = "access_code" async def send_to_saas_backend(