add some more backend logs to help with debugging
This commit is contained in:
parent
60a5a1917f
commit
4c71db12b4
@ -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"]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user