AI stream to content script
I am creating a chrome extension which is a content script, I want to stream my AI response and display it token by token.
I am able to get the stream with POST request using background script but don't know how to get it to content script token by token by using res.send() or something similar.
I am able to get the stream with POST request using background script but don't know how to get it to content script token by token by using res.send() or something similar.