今天(2025年6月2日)我在使用Gemini 2.5 Flash进行函数调用时遇到了严重问题:API响应格式似乎发生了变化,经常返回空值(null),而且在处理工具调用时表现得很混乱,有时刚开始执行任务就认为任务已完成,没有发出函数调用,导致我的function calling一直失败,应用无法正常运行。我注意到这个问题在不同数据量下都会发生(无论是小数据还是大数据),而且流式和非流式输出都有类似情况。请问有谁遇到过类似问题,或者知道这是怎么回事、如何解决?急需帮助!
Hi @Siam_Molla , Welcome to the forum.
Thanks for bringing this up. To better understand the issue and help troubleshoot, could you please share the sample code you’re using to reproduce the problem?