uni-api icon indicating copy to clipboard operation
uni-api copied to clipboard

gemini使用-search启用搜索后,在cherry studio中使用时,无法给出搜索的参考链接

Open djhdj1 opened this issue 1 year ago • 11 comments

gemini使用-search启用搜索后,在cherry studio中使用时,无法给出搜索链接。 gemini-2.5-flash-think-24576-search模型搜索后给出的答案应该是联网搜索过的,但没有给出网页链接 gemini-2.5-pro-search搜索后是空回复 以上基于cherrysudio 1.2.5版本 进行测试,使用的代理地址https://api-proxy.me/gemini/v1beta

djhdj1 avatar Apr 29 '25 06:04 djhdj1

gemini-2.5-flash-think-24576-search模型搜索后给出的答案应该是联网搜索过的,但没有给出网页链接

uni-api 没提供链接。

gemini-2.5-pro-search搜索后是空回复

这个无法复现。

Image

yym68686 avatar Apr 29 '25 07:04 yym68686

gemini-2.5-flash-think-24576-search模型搜索后给出的答案应该是联网搜索过的,但没有给出网页链接

uni-api 没提供链接。

gemini-2.5-pro-search搜索后是空回复

这个无法复现。

Image

我又试了一下,2.5 pro确实没问题了,可能是刚才哪里没用对?不过搜索链接确实给不出来,这个能不能修复一下?

djhdj1 avatar Apr 29 '25 08:04 djhdj1

不过搜索链接确实给不出来,这个能不能修复一下?

你想要的是什么效果。

yym68686 avatar Apr 29 '25 08:04 yym68686

不过搜索链接确实给不出来,这个能不能修复一下?

你想要的是什么效果。

就是给出搜索结果的链接啊类似下图的引用内容

Image

djhdj1 avatar Apr 29 '25 08:04 djhdj1

你好,这应该不是流式输出吧?

yym68686 avatar May 21 '25 09:05 yym68686

你好,这应该不是流式输出吧?

我测试了一下就是正常流式输出的,是有引用内容的

djhdj1 avatar Jun 13 '25 06:06 djhdj1

数字角标是一开始输出中途就有的,还是全部显示完后才显示的?

yym68686 avatar Jun 13 '25 07:06 yym68686

数字角标是一开始输出中途就有的。这个我也试了,除了gemini-2.5-pro-exp有数字角标,其他的gemini开启搜索都没有,引用内容当然也没有。

tekkenKK avatar Jun 13 '25 08:06 tekkenKK

下面是 gemini-2.5-pro 官方API的响应,理论上并不可能实现在流式输出过程中实现角标的显示,因为整个正文内容结束后才会输出url信息。所以你说的流式中途就能输出数字角标没有办法实现。

[{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "**Understanding the Statement**\n\nI've grasped the user's declaration: \"今天没有新闻\" or \"There is no news today.\" My primary task is to recognize this isn't a news request. Per the guidelines, even though the user isn't asking for news, I must still output a tool_code block. This feels a bit counterintuitive, but I'm on track.\n\n\n",
            "thought": true
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "**Defining the Strategy**\n\nI've finalized the approach. Despite the user's declarative statement, I'm proceeding as if they implicitly seek news. I'll generate three Chinese search queries targeting \"today's news,\" focusing on headlines and recent updates. The search will filter for the current date, June 13, 2025, to ensure relevance. My response will either summarize the results or acknowledge the absence of significant news if none is found.\n\n\n",
            "thought": true
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "好的,我来帮您看看今天有什么新闻。\n"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "今天是"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "2025年6月13日,星期五。以下是今天"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "的一些主要新闻:\n\n**国际冲突与外交:**\n\n*   据报道,以色列"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "对伊朗的军事和核设施发动了“大规模打击”,导致德黑兰东北部发生爆炸。 伊朗媒体报道了这一消息,《"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "以色列时报》称以色列空军正在执行此次打击。 美国官员向半岛电视台阿拉伯语频道透露,以色列在袭击前已"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "通知华盛顿。 此事件引发国际社会广泛关注,伊拉克谴责了此次袭击,并呼吁国际社会采取实际行动。 俄罗斯也强烈谴责了以色列与伊朗之间紧张局势的"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "急剧升级。 中国外交部对此表示关切,呼吁有关各方采取有利于地区和平稳定的行动。 由于地区领空限制,数十架中东航班已转飞塞浦路斯。\n*   美国总统唐纳德·特朗普表示,他对于与伊朗达成一项阻止其核计划武器化的协议“信心大为减弱”。\n*   另一方面,特朗普宣布,作为一项待批准的初步贸易协议的一部分,中国将放松对磁铁和稀土"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "矿物的出口管制,同时美国对中国商品的关税将增至55%。\n*   联合国难民署驻华代表穆索菲女士近日拜会了中国国家移民管理局局长王志忠,双方就难民保护等问题进行了讨论。联合国难民署高度"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "评价中国在解决被迫流离失所问题根源方面发挥的重要作用。\n\n**航空与灾难:**\n\n*   印度航空公司一架载有242人的客机在起飞几分钟后坠毁于印度西北部城市艾哈迈达巴德。 据报道,事故造成241人遇难,仅有1人生还。 BBC等媒体正在分析坠机可能的原因。\n\n**国内经济与政策:**\n\n*   中国人民银行和国家外汇局联合印发了支持福建探索"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "海峡两岸融合发展新路、建设两岸融合发展示范区的若干措施,其中包括支持资本项下跨境投融资便利化。\n*   科创板开板六年来,上市公司已达588家,总市值超过6.8万亿元。"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "\n*   《中国教育报》头版头条报道了哈尔滨工业大学在打造国之重器、培养杰出人才方面的事迹。\n*   《新湘评论》今日头条关注在2025年“文化和自然遗产日”之际,如何保护"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "好、传承好、传播好中华文化瑰宝。\n\n**社会民生:**\n\n*   马来西亚发生一起悲剧,一名华小老师及其长子在家中遇害,幼子受伤入院。 警方初步调查称,嫌犯("
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "死者17岁的次子)因不满被责骂而预谋行凶。\n*   澳门地球物理气象局消息,受热带气旋“蝴蝶”影响,已发出相关警告,并预计可能在14日凌晨至早上改发三号风"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "球。\n\n**市场动态:**\n\n*   美国市场方面,由于通胀放缓和美债标售稳健,美国股债齐涨,科技股表现强劲,标普指数反弹至近三个月高位。 甲骨文公司财"
        }
        ]
    },
    "groundingMetadata": {}
    }
],
"usageMetadata": {
    "trafficType": "ON_DEMAND"
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}
,
{
"candidates": [
    {
    "content": {
        "role": "model",
        "parts": [
        {
            "text": "报后股价大涨。 美元指数则出现下跌。\n\n请注意,新闻动态会持续更新。"
        }
        ]
    },
    "finishReason": "STOP",
    "groundingMetadata": {
        "webSearchQueries": [
        "今日头条新闻 2025年6月13日",
        "2025年6月13日 最新消息",
        "今天的新闻"
        ],
        "searchEntryPoint": {
        "renderedContent": "\u003cstyle\u003e\n.container {\n  align-items: center;\n  border-radius: 8px;\n  display: flex;\n  font-family: Google Sans, Roboto, sans-serif;\n  font-size: 14px;\n  line-height: 20px;\n  padding: 8px 12px;\n}\n.chip {\n  display: inline-block;\n  border: solid 1px;\n  border-radius: 16px;\n  min-width: 14px;\n  padding: 5px 16px;\n  text-align: center;\n  user-select: none;\n  margin: 0 8px;\n  -webkit-tap-highlight-color: transparent;\n}\n.carousel {\n  overflow: auto;\n  scrollbar-width: none;\n  white-space: nowrap;\n  margin-right: -12px;\n}\n.headline {\n  display: flex;\n  margin-right: 4px;\n}\n.gradient-container {\n  position: relative;\n}\n.gradient {\n  position: absolute;\n  transform: translate(3px, -9px);\n  height: 36px;\n  width: 9px;\n}\n@media (prefers-color-scheme: light) {\n  .container {\n    background-color: #fafafa;\n    box-shadow: 0 0 0 1px #0000000f;\n  }\n  .headline-label {\n    color: #1f1f1f;\n  }\n  .chip {\n    background-color: #ffffff;\n    border-color: #d2d2d2;\n    color: #5e5e5e;\n    text-decoration: none;\n  }\n  .chip:hover {\n    background-color: #f2f2f2;\n  }\n  .chip:focus {\n    background-color: #f2f2f2;\n  }\n  .chip:active {\n    background-color: #d8d8d8;\n    border-color: #b6b6b6;\n  }\n  .logo-dark {\n    display: none;\n  }\n  .gradient {\n    background: linear-gradient(90deg, #fafafa 15%, #fafafa00 100%);\n  }\n}\n@media (prefers-color-scheme: dark) {\n  .container {\n    background-color: #1f1f1f;\n    box-shadow: 0 0 0 1px #ffffff26;\n  }\n  .headline-label {\n    color: #fff;\n  }\n  .chip {\n    background-color: #2c2c2c;\n    border-color: #3c4043;\n    color: #fff;\n    text-decoration: none;\n  }\n  .chip:hover {\n    background-color: #353536;\n  }\n  .chip:focus {\n    background-color: #353536;\n  }\n  .chip:active {\n    background-color: #464849;\n    border-color: #53575b;\n  }\n  .logo-light {\n    display: none;\n  }\n  .gradient {\n    background: linear-gradient(90deg, #1f1f1f 15%, #1f1f1f00 100%);\n  }\n}\n\u003c/style\u003e\n\u003cdiv class=\"container\"\u003e\n  \u003cdiv class=\"headline\"\u003e\n    \u003csvg class=\"logo-light\" width=\"18\" height=\"18\" viewBox=\"9 9 35 35\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\n      \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M42.8622 27.0064C42.8622 25.7839 42.7525 24.6084 42.5487 23.4799H26.3109V30.1568H35.5897C35.1821 32.3041 33.9596 34.1222 32.1258 35.3448V39.6864H37.7213C40.9814 36.677 42.8622 32.2571 42.8622 27.0064V27.0064Z\" fill=\"#4285F4\"/\u003e\n      \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.3109 43.8555C30.9659 43.8555 34.8687 42.3195 37.7213 39.6863L32.1258 35.3447C30.5898 36.3792 28.6306 37.0061 26.3109 37.0061C21.8282 37.0061 18.0195 33.9811 16.6559 29.906H10.9194V34.3573C13.7563 39.9841 19.5712 43.8555 26.3109 43.8555V43.8555Z\" fill=\"#34A853\"/\u003e\n      \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.6559 29.8904C16.3111 28.8559 16.1074 27.7588 16.1074 26.6146C16.1074 25.4704 16.3111 24.3733 16.6559 23.3388V18.8875H10.9194C9.74388 21.2072 9.06992 23.8247 9.06992 26.6146C9.06992 29.4045 9.74388 32.022 10.9194 34.3417L15.3864 30.8621L16.6559 29.8904V29.8904Z\" fill=\"#FBBC05\"/\u003e\n      \u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.3109 16.2386C28.85 16.2386 31.107 17.1164 32.9095 18.8091L37.8466 13.8719C34.853 11.082 30.9659 9.3736 26.3109 9.3736C19.5712 9.3736 13.7563 13.245 10.9194 18.8875L16.6559 23.3388C18.0195 19.2636 21.8282 16.2386 26.3109 16.2386V16.2386Z\" fill=\"#EA4335\"/\u003e\n    \u003c/svg\u003e\n    \u003csvg class=\"logo-dark\" width=\"18\" height=\"18\" viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\n      \u003ccircle cx=\"24\" cy=\"23\" fill=\"#FFF\" r=\"22\"/\u003e\n      \u003cpath d=\"M33.76 34.26c2.75-2.56 4.49-6.37 4.49-11.26 0-.89-.08-1.84-.29-3H24.01v5.99h8.03c-.4 2.02-1.5 3.56-3.07 4.56v.75l3.91 2.97h.88z\" fill=\"#4285F4\"/\u003e\n      \u003cpath d=\"M15.58 25.77A8.845 8.845 0 0 0 24 31.86c1.92 0 3.62-.46 4.97-1.31l4.79 3.71C31.14 36.7 27.65 38 24 38c-5.93 0-11.01-3.4-13.45-8.36l.17-1.01 4.06-2.85h.8z\" fill=\"#34A853\"/\u003e\n      \u003cpath d=\"M15.59 20.21a8.864 8.864 0 0 0 0 5.58l-5.03 3.86c-.98-2-1.53-4.25-1.53-6.64 0-2.39.55-4.64 1.53-6.64l1-.22 3.81 2.98.22 1.08z\" fill=\"#FBBC05\"/\u003e\n      \u003cpath d=\"M24 14.14c2.11 0 4.02.75 5.52 1.98l4.36-4.36C31.22 9.43 27.81 8 24 8c-5.93 0-11.01 3.4-13.45 8.36l5.03 3.85A8.86 8.86 0 0 1 24 14.14z\" fill=\"#EA4335\"/\u003e\n    \u003c/svg\u003e\n    \u003cdiv class=\"gradient-container\"\u003e\u003cdiv class=\"gradient\"\u003e\u003c/div\u003e\u003c/div\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"carousel\"\u003e\n    \u003ca class=\"chip\" href=\"https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQGvQL-t2EraZt3xuChoqbeCeaaVFNJS1LpTU-H4XJEX2ATDFPIdzZMEXVqQKgt06DP22Kn_JUgWPdMv14LjqW-nr90YikQL5VjxGLbdOsUmgMfyK4GzN_U9EMfp4LdY8hqkLQowmAWxstAc-HAOKoPr-WfNmoqRRALC2paOSNZt-201tWskVENn8EVeAZjLUmCqXOebL9XfQFHw2-y6dRBYFoTvzwXArtiPXsjoX2ZaNieq1CMoQML8oRruaPOmsFe6ZQj6nCEFt2LQbw==\"\u003e2025年6月13日 最新消息\u003c/a\u003e\n    \u003ca class=\"chip\" href=\"https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQF9hL2E2YBNM4OU8CGhtWnMAo3-Cc6-6VupXOUWisXnWThI6RVoLogjiGf0fPT3lnuuvT0hgL40ltPNoLJsJ7n_IIhqkI3bGQ65ikXnIh3kJgBE_6IP9Mul9TsQ_B6BaaNNl30WzmxUJGSTegE1ifFYoCkCE7ZfbyBRRsHQjpxmTLwO_8ROD7wg0vjK9seWqI6gCGu26zJiys2gF_pdk4g-zMqSOacZxXLW4YJNvVo3YQ==\"\u003e今天的新闻\u003c/a\u003e\n    \u003ca class=\"chip\" href=\"https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQEOp5IATvWEYeN5-EtXgj1RL8CEJzo2IdxP40HRYeM-fpYbvOAZsqkqoiqzbvzKhjX0trEP5ysljqmdqNXzJVilkoidAc9btT8cZqCkeRs8V47kgq-0TiXucqy8zF125ABlsBWz2Lk7HutF-UWvQ7JZSLNGObLEvl0lxs6OCWdZ4c8BabyckPrfJN9V291wxTYrnRk12kdF91GbtGFxUnvKSjK3L6AB_00pWijrCjaIPJwTYRwCWKyzjQCnICjPGr24lBxMmb2k18YqD-MlUTa8K8CIawo6l0ABYshMQw==\"\u003e今日头条新闻 2025年6月13日\u003c/a\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n"
        },
        "groundingChunks": [
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQHEP3VQ9E9ItWTXigJRXOxnHW5lnRE5Igj1QkZaEqYMMPx8p80SNCUI13PyVLfBZ5A_oe040ocOP0Zi9MXCLqzD54rP7qRWpv9QjVeP8-utFKXA1Lk0r4xXYlFJb2doNYfJ01uXjYxLvTPfKjmjRdxqGigAf7Edm2o9qIotfRrS-yQhnlmmxbegYmKJY7SsnsXW-OwXShttRsGdHnbb7sUkZ_FnrSUSybidwBIg6TDA5IkoGurQBhu3R09ck8EPZa5lQZdd3_wrLBfvMgRvHMu3biD-rzFsrlHuO2mkBKl2cYBqTo-53QYes4AY-HZuDNAANhKYEyUrOYQ41aq3zlqDdAkFbK554Y5masmLNyTdhELQZVxRZSmwni2PmPEBbuebViVW_6E=",
            "title": "aljazeera.net",
            "domain": "aljazeera.net"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQEUgYCdcHCEGZcg6QUjawmxlf7tm71xLh854b1eYgMnuqptI-3-qD9ORGVWWFKQK2azO9PipWHQJI6uR498mYXs3cQ9MRj3-lqnOI4PQzeJRJg_-IculNjWbCb5sA==",
            "title": "voachinese.com",
            "domain": "voachinese.com"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQHJ3OWuHu2bdOYbeeOiHqxTcg4LGB3JgUt5AYSJ1j4OL51xIk3GbUnrICycC5bx1YxSYYjolgY0NRxBkAQW1XZxVWevZJT_0fMwHaWJW5CIj8i6MUgwaWX-RRxGQAnJFOFoB4ncq-g7HBAZo6YksXeJk-aHBSvQXyz8P4X9dkRpXrS8Yt9NrzRKBJMSOzaN0uIt2XL-eQh8YKLrdhD71MkrcQuC4eUp2E_1g5XthfJq09U0RI-9YcyUHw1HCyAbqgi3HAV93mJ1OEf1FTfNW_m__APbhQ_tYRp8uJur78nKmQSQsh9UGsfBiFDEfyN9HDCZOb7-1v_o2Garrteh6RChPXZEyNlL-MtMLQZelc5M0jITR_CjLN_rT5NOPtA=",
            "title": "unhcr.org",
            "domain": "unhcr.org"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQE7FeN2cih_e3EdMNzfYjyFZXLYy06Mk91uAtT-lefdzYvBG-_MXTxsP7wHAfE1yV6Putl_Et-lyLQovecKuwxL-kGfE5luu_AzaQDsLQY-lQaRel0gSvixEku6Fb04sBkfRwPJ_heuXvAFXN9Wsu1m_-pwOY3kafudpmqr-QmeQdjcm3kiDiU3eLXoiSYdj4AKp2tuhTLYfdk6E7XAaA==",
            "title": "sbs.com.au",
            "domain": "sbs.com.au"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQEiDtay2EbAI-1zQYvnvgFOdOtGw4CBSadvmeXAkJuBhPWuR3zhVxX8sSZ7FLizneJ6JUnBXQzAYXhzRt2vKdq3nt91YP2HFiStaE0thOcGDZpXF-41FyEQg-i4dQ==",
            "title": "bbc.com",
            "domain": "bbc.com"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQHy5tWW_p7k3i_jlz8foiour14ouQ7KyD4HdmMXHf5IfQZ2MYiifER1eSKZU_LfGlNP5q-EOkplEPYu1ZolWruRlESMAoZQMO8axWeocTBavnGiXEWc6DYRSxXO1OiCRcS65ZgXaL0x_XRmiLvlaJw4KbqtMv_8Pfw_WSiGylIqdFrElg==",
            "title": "sina.com.cn",
            "domain": "sina.com.cn"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQEywv5naTS8vZWA4Nfy-pASJt_HBT_4pRTjFcY-vTWFjHcGr-Oy6MSh4Dy7xB94hbvwm4nuIy84oHbME7TVnCDVubLo7N75Qscet4RHGf9cTLkv3QggO4j3gmt_jB9nSJrtOU-fwwu-KnqO9rHq4TQ3CQ==",
            "title": "hit.edu.cn",
            "domain": "hit.edu.cn"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQFVLH_GGFaAa_56774th4Ke8t6uLu940VzSG8XI_iQhDYJ_CFXlkH7yKHxtH2ZDOlfKV4ZL6oXUvC8lZ31sKzmjcAPmGfH2jWQaDy9Zs4hIvZI6qLQJDYKM5JJu7xXE4a7tyGWP",
            "title": "cnxxpl.com",
            "domain": "cnxxpl.com"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQGYKnlyHQYZsWCd-yASd0-Hw-u8SayFxgcF_bjDN7upZY06_Ot3iOFEu5dhGhxVxCRTDRUewaVUmleDyqsN8VHiZ-wKPUGGN3OVTTvftoXbx818mMLDcUSnJvwm2j_EySimFgsfTp-jXfRbfMJjPl5bnClCrQxgbSfLdXDMRbaCsZ5gJn4XGunfNuik6D5ZUF0S9BwLQGQ9yWfuXfcBI_qGB-LZiz5xQMAFgYhVXMC_MvSBTWRwq99tH3nzVlFpaMZVRehdw-qQUx-v8j7PSoRFGy63Q7R8Oq_-QxZBq7ml1A==",
            "title": "kwongwah.com.my",
            "domain": "kwongwah.com.my"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQGtyC3Zst6eosVfqEJJob1GlRRgitLa7y1qvTE82Tjc9rrZjTCHkcQofUm_SC--rUMB2sIpdsXaRySVZGnx506NreiqYwuP63zpWwPpFkwZZoiyGUc8SgZaMzKJmpzsYez0ISQpbDshNsxjvqh5TyTFO1xZb_Sq9XlaZtLqDUFlOnoj1o27aDIMPPBNbhTbLUeaqtQ86bBYHYZ6R-XzrCq1dtN3Bodb7jaXLq_WKg95a0G_eS4fWOCF2Ykdvy-dWGkJj_SGYBFrWjybe2ul-qc72MWsc3fc7NT4ME5gE0L-cQ==",
            "title": "kwongwah.com.my",
            "domain": "kwongwah.com.my"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQEsi1u8657eQInIk0bViQ9_NQSIQ9moVJKP7tOTbUJSNVRBXmZE3zNNDrRTRrNCLa1YSTsmlkNwJSl8rGlts_C3MskQwZO9rYW2XSKW1_J1tuYWFtoBZ6CQ_hWt4-Y8gFsi9g==",
            "title": "www.gov.mo",
            "domain": "www.gov.mo"
            }
        },
        {
            "web": {
            "uri": "https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQHzyMykHvAgDoMjbGC0IY7I7d0h7ZO9ZqzQo8rYo3tANQXjxrEH4JIc3tJO0oXX7TiTNnJ3502f6IR7C051Vy9DU0QLTVN6DusP1NEhW0Jbrrz2hwcLs0S48XQWjqxRbs-Z0-Ut",
            "title": "wallstreetcn.com",
            "domain": "wallstreetcn.com"
            }
        }
        ],
        "groundingSupports": [
        {
            "segment": {
            "startIndex": 163,
            "endIndex": 290,
            "text": "*   据报道,以色列对伊朗的军事和核设施发动了“大规模打击”,导致德黑兰东北部发生爆炸。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 291,
            "endIndex": 393,
            "text": "伊朗媒体报道了这一消息,《以色列时报》称以色列空军正在执行此次打击。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 394,
            "endIndex": 493,
            "text": "美国官员向半岛电视台阿拉伯语频道透露,以色列在袭击前已通知华盛顿。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 494,
            "endIndex": 611,
            "text": "此事件引发国际社会广泛关注,伊拉克谴责了此次袭击,并呼吁国际社会采取实际行动。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 612,
            "endIndex": 693,
            "text": "俄罗斯也强烈谴责了以色列与伊朗之间紧张局势的急剧升级。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 694,
            "endIndex": 793,
            "text": "中国外交部对此表示关切,呼吁有关各方采取有利于地区和平稳定的行动。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 794,
            "endIndex": 866,
            "text": "由于地区领空限制,数十架中东航班已转飞塞浦路斯。"
            },
            "groundingChunkIndices": [
            0
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 867,
            "endIndex": 1005,
            "text": "*   美国总统唐纳德·特朗普表示,他对于与伊朗达成一项阻止其核计划武器化的协议“信心大为减弱”。"
            },
            "groundingChunkIndices": [
            1
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1006,
            "endIndex": 1208,
            "text": "*   另一方面,特朗普宣布,作为一项待批准的初步贸易协议的一部分,中国将放松对磁铁和稀土矿物的出口管制,同时美国对中国商品的关税将增至55%。"
            },
            "groundingChunkIndices": [
            1
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1366,
            "endIndex": 1471,
            "text": "联合国难民署高度评价中国在解决被迫流离失所问题根源方面发挥的重要作用。"
            },
            "groundingChunkIndices": [
            2
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1497,
            "endIndex": 1618,
            "text": "*   印度航空公司一架载有242人的客机在起飞几分钟后坠毁于印度西北部城市艾哈迈达巴德。"
            },
            "groundingChunkIndices": [
            1,
            3
            ],
            "confidenceScores": [
            1,
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1619,
            "endIndex": 1677,
            "text": "据报道,事故造成241人遇难,仅有1人生还。"
            },
            "groundingChunkIndices": [
            3
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1678,
            "endIndex": 1726,
            "text": "BBC等媒体正在分析坠机可能的原因。"
            },
            "groundingChunkIndices": [
            4
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1758,
            "endIndex": 1972,
            "text": "*   中国人民银行和国家外汇局联合印发了支持福建探索海峡两岸融合发展新路、建设两岸融合发展示范区的若干措施,其中包括支持资本项下跨境投融资便利化。"
            },
            "groundingChunkIndices": [
            5
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 1973,
            "endIndex": 2061,
            "text": "*   科创板开板六年来,上市公司已达588家,总市值超过6.8万亿元。"
            },
            "groundingChunkIndices": [
            5
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2062,
            "endIndex": 2189,
            "text": "*   《中国教育报》头版头条报道了哈尔滨工业大学在打造国之重器、培养杰出人才方面的事迹。"
            },
            "groundingChunkIndices": [
            6
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2190,
            "endIndex": 2339,
            "text": "*   《新湘评论》今日头条关注在2025年“文化和自然遗产日”之际,如何保护好、传承好、传播好中华文化瑰宝。"
            },
            "groundingChunkIndices": [
            7
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2362,
            "endIndex": 2468,
            "text": "*   马来西亚发生一起悲剧,一名华小老师及其长子在家中遇害,幼子受伤入院。"
            },
            "groundingChunkIndices": [
            8,
            9
            ],
            "confidenceScores": [
            1,
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2469,
            "endIndex": 2561,
            "text": "警方初步调查称,嫌犯(死者17岁的次子)因不满被责骂而预谋行凶。"
            },
            "groundingChunkIndices": [
            8,
            9
            ],
            "confidenceScores": [
            1,
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2562,
            "endIndex": 2721,
            "text": "*   澳门地球物理气象局消息,受热带气旋“蝴蝶”影响,已发出相关警告,并预计可能在14日凌晨至早上改发三号风球。"
            },
            "groundingChunkIndices": [
            10
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2744,
            "endIndex": 2898,
            "text": "*   美国市场方面,由于通胀放缓和美债标售稳健,美国股债齐涨,科技股表现强劲,标普指数反弹至近三个月高位。"
            },
            "groundingChunkIndices": [
            11
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2899,
            "endIndex": 2938,
            "text": "甲骨文公司财报后股价大涨。"
            },
            "groundingChunkIndices": [
            11
            ],
            "confidenceScores": [
            1
            ]
        },
        {
            "segment": {
            "startIndex": 2939,
            "endIndex": 2969,
            "text": "美元指数则出现下跌。"
            },
            "groundingChunkIndices": [
            11
            ],
            "confidenceScores": [
            1
            ]
        }
        ],
        "retrievalMetadata": {}
    }
    }
],
"usageMetadata": {
    "promptTokenCount": 298,
    "candidatesTokenCount": 759,
    "totalTokenCount": 1354,
    "trafficType": "ON_DEMAND",
    "promptTokensDetails": [
    {
        "modality": "TEXT",
        "tokenCount": 3
    }
    ],
    "candidatesTokensDetails": [
    {
        "modality": "TEXT",
        "tokenCount": 759
    }
    ],
    "thoughtsTokenCount": 297
},
"modelVersion": "gemini-2.5-pro-preview-05-06",
"createTime": "2025-06-13T09:24:23.004546Z",
"responseId": "R-5LaMIjiu-AtQ-tnYmgBg"
}]

yym68686 avatar Jun 13 '25 09:06 yym68686

数字角标是一开始输出中途就有的,还是全部显示完后才显示的?

是在结束之后显示的

djhdj1 avatar Jun 13 '25 14:06 djhdj1

哦哦,那就没事了。应该是响应把原数据透传给 cherry studio,然后cherry studio在响应结束后自行处理了搜索的URL。后面我测试一下怎么才能让 cherry studio 显示出来。

yym68686 avatar Jun 13 '25 14:06 yym68686