IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.77k stars 346 forks source link

How to integrate with AI API? E.g. OpenAI, Gemini? #383

Open auzhva opened 2 months ago

auzhva commented 2 months ago

I want to add few actions that would call AI provider to perform some action that I will define. I can easily implement that code in programming language, but what is a way to call it from Boop?

I see several options:

  1. Do network interaction from JavaScript itself. This might mean a lot of things to bring into Boop, but that's the option.
  2. Allow boop script to trigger some external program and grab its output. This sounds simpler as this doesn't bring all the tools into boop itself.

Maybe some other ways are possible.

What do you think?