When Gemini Met OpenAI: How I Augmented Firebase Studio with External Knowledge

When I first started building zapletters, I hit an blocker while building an AI-powered summarization feature in Firebase Studio. Firebase relies on Google’s Gemini model under the hood, but when it came time to integrate the OpenAI API for my custom summarization flow, Gemini simply didn’t have the answers. It just bounced back and forth between 2 errors.

After spending an entire day tackling with the same issue, I asked Firebase to simply summarize the problem with integrating the openAI. I told firebase to summarize for an external help to come in and provide a solution. ChatGPT was the external help.

I simply copied the problem summarization, gave some context to chatgpt and asked for a solution. I fed the approach provided by chatgpt to firebase, and it made changes. In that very instant firebase was able to implement the entire API integration. Tbh it was an aha moment for a non-coder like me.

Ever since I started giving firebase 3 attempts at solving any problem and then reach out to chatgpt for external help. It works like a charm every time!

Has anyone else tried this approach yet?