I think I could also use function calling because you can add the call of a (python) function to any request to the completion API, then the output of the function can be used as input to the prompt…
The only problem is that, all the given examples use Python, but I want to be able to use Js functions instead