I'm currently exploring ways to securely implement ChatGPT API streaming, but I'm finding it quite challenging. It seems that Firebase Cloud Functions, which could be used for remote requests, don't support streaming. On the other hand, running the operation locally might expose the API key in the source code.
Could anyone please kindly offer suggestions or share their experiences on how to effectively implement ChatGPT API streaming? Your insights would be greatly appreciated!