Has anyone ever tried implementing a chatbot in a JUCE project?
Can you implement a basic python chatbot script with pybind11 in a JUCE project? Are there better ways to implement this feature?
I would really appreciate any suggestions or insights on this.
Where is the chatbot running? On a server? Can’t you just implement a frontend between the Juce App and the server, maybe using WebSockets?
Basically, the chatbot is to be on a secondary window on top of the primary window of my application. I do not want to use a server. I am trying to send prompts and receive responses from chatgpt through text editors.
Is that possible?
It’s not clear to me what powers the chatbot… If it’s not on a remote server, is it in a separate executable? A dynamic library? Or are you trying to write one from the ground up?
Okay. Let’s forget about my current implementation.
What would you suggest my approach or steps should be when trying to create a chatbot window in my JUCE app with ready-made AI models like chatgpt?
I’ve been thinking about trying something similar.
Bump.
Usually you put the actual chatbot on a server, which can be written using any language, including Python, etc.
You can then expose some trivial interface into it, like an http request that you can call from the app/plugin, like with juce::URL
.
If you use HTTP technique as @eyalamir suggests, you can also switch to a local version which runs on a local interface without having to change your API
Thanks for the help guys.