From 4c71db12b4f85437d4e2ede90ce7a8c829d72aba Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Mon, 27 Nov 2023 21:22:20 -0500 Subject: [PATCH] add some more backend logs to help with debugging --- backend/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/main.py b/backend/main.py index 93d2e9a..e644760 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"]: