Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

add some more backend logs to help with debugging

Abi Raja4c71db12b4f8
diff --git a/backend/main.py b/backend/main.py
index 93d2e9ab..e6447601 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -63,8 +63,12 @@ def write_logs(prompt_messages, completion):
async def stream_code(websocket: WebSocket):
await websocket.accept()
+ print("Incoming websocket connection...")
+
params = await websocket.receive_json()
+ print("Received params")
+
# Get the OpenAI API key from the request. Fall back to environment variable if not provided.
# If neither is provided, we throw an error.
if params["openAiApiKey"]: