zuming (@daxia031126)实现Cherry studio调用new api中gemini 2.0-flash-exp的联网功能 中发帖

从new api支持gemini联网搜索吗继续讨论: 
从帖子中知道了new api是做了gemini 2.0-flash-exp的联网适配的,
只需要在请求体中
{
"messages": [
{
"role": "user",
"content": "今天北京天气如何"
}
],
"model": "gemini-2.0-flash-exp",
"stream": false
}

加入
"tools": [
{
"type": "function",
"function": {
"name": "googleSearch"
}
}
...