AIStudio2API icon indicating copy to clipboard operation
AIStudio2API copied to clipboard

调用 gemini-4-argon 模型 出现思考内容返回在正文里

Open fantastlcok opened this issue 1 month ago • 2 comments

使用 gemini-4-argon 模型 有概率出现思考内容响应在普通输出里,都以 🫧 气泡图标开始。

出现问题的响应正文

data: {"candidates":[{"content":{"parts":[{"text":"🫧"}],"role":"model"},"index":0}],"modelVersion":"gemini-4-argon","responseId":"resp_1793003788976777086_36"}

data: {"candidates":[{"content":{"parts":[{"text":"thought\n Let's reply naturally, keeping it short, light, conversational, and"}],"role":"model"},"index":0}],"modelVersion":"gemini-4-argon","responseId":"resp_1793003788976777086_36"}

data: {"candidates":[{"content":{"parts":[{"text":" strictly adhering to all rules (no emojis, no markdown, no dashes, no inner-state attribution/labeling).今天"}],"role":"model"},"index":0}],"modelVersion":"gemini-4-argon","responseId":"resp_1793003788976777086_36"}

data: {"candidates":[{"content":{"parts":[{"text":"终于。。。。。。"}],"role":"model"},"index":0}],"modelVersion":"gemini-4-argon","responseId":"resp_1793003788976777086_36"}

data: {"candidates":[{"content":{"parts":[{"text":",多。。。。。。"}],"role":"model"},"index":0}],"modelVersion":"gemini-4-argon","responseId":"resp_1793003788976777086_36"}

data: {"candidates":[{"content":{"parts":[],"role":"model"},"finishReason":"STOP","index":0}],"modelVersion":"gemini-4-argon","responseId":"resp_1793003788976777086_36","usageMetadata":{"cachedContentTokenCount":72273,"candidatesTokenCount":73,"promptTokenCount":74369,"thoughtsTokenCount":0,"toolUsePromptTokenCount":0,"totalTokenCount":74442}}

fantastlcok avatar Oct 26 '26 11:10 fantastlcok

Hi, 把 5 个流式块的 text 按顺序拼起来,客户端收到的正文是:

🫧thought
 Let's reply naturally, keeping it short, light, conversational, and strictly adhering to all rules (no emojis, no markdown, no dashes, no inner-state attribution/labeling).今天终于。。。。。。,多。。。。。。

问题在于官渠道/Antigravity(或者Vercel渠)有两种思考格式,一种是最常见的思考摘要: { 一个加粗markdown标题 一段话,是摘要式的,意义不明的摘要 }...后续重复{}; 一种是真实思考过程在thoughts块里真实泄露,可以看到真实CoT,触发概率极低; 这里的看起来是真实思考过程,但出现在正文,因此应该是模型自己的问题。 一个更强的线索:上游自己的token计数能证明这段文字不是我们解析出错,所以可能只是模型发疯了。

Mag1cFall avatar Oct 26 '26 12:10 Mag1cFall

  1. Hi, 把 5 个流式块的 text 按顺序拼起来,客户端收到的正文是: 🫧thought Let's reply naturally, keeping it short, light, conversational, and strictly adhering to all rules (no emojis, no markdown, no dashes, no inner-state attribution/labeling).今天终于。。。。。。,多。。。。。。

    问题在于官渠道/Antigravity(或者Vercel渠)有两种思考格式,一种是最常见的思考摘要:
    {
    一个加粗markdown标题
    一段话,是摘要式的,意义不明的摘要
    }...后续重复{};
    一种是真实思考过程在thoughts块里真实泄露,可以看到真实CoT,触发概率极低;
    这里的看起来是真实思考过程,但出现在正文,因此应该是模型自己的问题。
    一个更强的线索:上游自己的token计数能证明这段文字不是我们解析出错,所以可能只是模型发疯了。
    

感谢回复。 gemini的思考都是小标题加摘要。目前出现的思考内容确实都不是此类型。 之前尝试在对话中要求模型不再输出气泡开始的英文内容失败了,模型还是会输出此类思考。 我也倾向于模型发疯了,毕竟无法稳定复现。

fantastlcok avatar Oct 26 '26 13:10 fantastlcok