Hi! Is there any functional for replacing a selected text?
I have an idea: the extension for ChatGPT which sent a selected text with promts (I mean command for ChatGPT what it needs to do with text, for example “Simplify this text so that it’s easier to understand”) to ChatGPT via API and it will be replaced the selected text by the received response.
For example. I’m writing a email and select the text, then click the icon of the extension and the text will be replaced by the generated ChatGPT text.
Great idea; it could be really powerful. What PopClip would need is an API for sending queries to ChatGPT. So the first task is to research whether ChatGPT provides an API.
Edit: Had a look, yes it does, so the next step is to play with the API a bit to figure out how we will use it in PopClip. I’ll certainly take a look later.
OpenAI has an API that is simple to use. It doesn’t offer access to ChatGPT itself yet, but it does offer the GPT-3 model, which is what ChatGPT is built on. There are so many capabilities and options you could go to town with it. But here, I have made a simple example that completes a prompt you give it. Have a go, let me know any feedback, and I’ll probably release it as a pre-packaged extension soon too.