Title: "fn.function is not a function" error when using function calling with Gemini in Portkey Description: When trying to use function calling with Gemini model (virtualKey: "google") in Portkey, the following error occurs: fn.function is not a function. This happens when executing the runTools method. While function calling works correctly with other models (GPT-4, Mistral), it fails specifically with Gemini. Steps to reproduce:
javascriptCopyconst runner = await portkey.beta.chat.completions.runTools({ messages: [...], model: "gemini-model-name", tools, tool_choice: "auto", stream: true, temperature: 0, user: "agentId" }); Expected behavior: Portkey should properly execute the function calling with Gemini model as it does with other models.