Thanks, I'll take a look at their repo to see how they are doing it. What I was thinking was to let the AI search page talk to any server that speaks the standard chat API. You'd run a local gateway with your provider key in its config, and paste its localhost address into a field on the search page...