Quote:
Originally Posted by cdhigh
Given the Kindle's limited CPU and RAM, writing comprehensive Java code directly is recommended over calling Python scripts.
If you can successfully hack the Wikipedia page to customize its GUI (at least with an input textbox and an output textbox and a pop-up keyboard), implementing simple Java functions to connect to an AI server should be relatively straightforward.
The SimpleAiProvider class in my Inkwell project already wrap the APIs of several AI services into a unified interface, making the Java conversion process even easier.
Or writing only an OpenAI API is enough.
-
|
I want to refrain from embedding the AI code in the patched jars, because the APIs change frequently and it wouldn't be convenient to update the patches in the kindle everytime, that's why I want to redirect the calls to a custom server and do all the work there. It would be much easier to maintain and more customizable.