Error code 401 means authorization error.
This is what Groq says.
- 401 Unauthorized: The request was not successful because it lacks valid authentication credentials for the requested resource. Ensure the request includes the necessary authentication credentials and the api key is valid.
You may check for more errors on this link. https://console.groq.com/docs/errors