Back to section
Google ⭐ Notable

Gemini API: temperature, top_p, and top_k Deprecated; Built-in Tools Now Combinable with Function Calling

Nedeľa 21. júna 2026 Source: Google

What's new

  • Deprecated: temperature, top_p, and top_k parameters deprecated for latest Gemini models
  • Google sampling defaults: Gemini API moves to internal defaults managed by Google
  • Built-in + function calling: Gemini API now allows combining built-in tools (Google Search, code execution) with custom function calling tools in a single API request
  • Backward compatibility: calls with these parameters may be ignored or cause deprecation warnings

Why it matters

Breaking change for developers relying on temperature=0 for deterministic outputs. All Gemini API integrations need auditing. The built-in + custom tool combination opens new possibilities for agentic pipelines.

How to try it

Check your code for calls using temperature, top_p, or top_k. Migration guidance at Gemini API Changelog: https://ai.google.dev/gemini-api/docs/changelog