Gemini 3.6 Flash 和 3.5 Flash-Lite 弃用 temperature、top_p、top_k

Starting with Gemini 3.6 Flash and 3.5 Flash-Lite, temperature, top_p, and top_k are deprecated. ...

精选理由

谷歌改了API参数,用Gemini 3.6或3.5 Flash-Lite的开发者必须看,否则代码报错。

AI 摘要

Google 宣布从 Gemini 3.6 Flash 和 3.5 Flash-Lite 开始,API 中的 temperature、top_p 和 top_k 参数被弃用。官方开发指南(ai.google.dev/gemini-api-doc)提供了详细说明。开发者需在涉及这两个模型时调整代码,移除或替换相关参数。此变更影响使用 Gemini 最新版本的用户。

原文 · Philipp Schmid

Starting with Gemini 3.6 Flash and 3.5 Flash-Lite, temperature, top_p, and top_k are deprecated. ...

Starting with Gemini 3.6 Flash and 3.5 Flash-Lite, temperature, top_p, and top_k are deprecated. learn more in our dev guide: ai.google.dev/gemini-api/doc… 💬 5 🔄 1 ❤️ 10 👀 1285 📊 6 ⚡