I keep reporting error 401 when connecting to openai api in WebSocket

When I connected the api of openai in WebSocket, I kept reporting an error of 401. I changed many ways to write 401. May I ask what the problem is

Hi @ggasgdsb

Please change your API key from OpenAI API now that you’ve exposed it in the screenshot above.

Also please share your code in proper markdown, it’s barely readabl right now.

1 Like