ChatGPT API in modern browser. Inspired by chatgpt-api.
Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.
But when you run it locally or API key from inputs, this may work.