add some more backend logs to help with debugging

This commit is contained in:
Abi Raja 2023-11-27 21:22:20 -05:00
parent 60a5a1917f
commit 4c71db12b4

View File

@ -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"]: