AI API for Supertool

I should have started on this a long time ago :slight_smile:

Here is the start of a GrampsChat. This should also be a good way for exploring a chatbot for gramps-web as well. There is no reason they need to be two different things.

Currently, I have it hardcoded for openai, but through litellm, it should be easy to configure for any AI model, including your own.

Note that if you don’t restart your conversation often, your context messages will build up and that costs $$$$.

It doesn’t currently load any any of your local database, but it could. I’ll package this up soon and make an addon. (It’s pretty ugly right now, and is really just a Gtk wrapper around a chatbot conversation. But let me know if this would be useful to you.)

output

5 Likes