temperature and top_p silently removed from Interactions GenerationConfig in 2.14.0
Maintainer antworten meist innerhalb von 1 Tag
@kkorpal arbeitet bereits daran.
Seit 19.8.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Description
temperature and top_p were removed from the Interactions API's GenerationConfig / GenerationConfigParam in 2.14.0. The 2.14.0 changelog has no entry for this, and it wasn't flagged as a deprecation in any prior release.
The removal is type-only. GenerationConfig is extra="allow", so passing temperature still validates and still serializes onto the wire — code keeps working at runtime but fails type checking. That combination makes it easy to "fix" by deleting the field, silently changing sampling behavior.
This also leaves the two surfaces inconsistent: types.GenerateContentConfig (used by models.generate_content) still has both temperature and top_p as first-class fields in 2.18.1.
Reproduction (2.18.1)
from google.genai import version
from google.genai.interactions import GenerationConfigParam
from google.genai._gaos.types.interactions.generationconfig import GenerationConfig
print("google-genai:", version.__version__)
print("temperature in GenerationConfig:", "temperature" in GenerationConfig.model_fields)
print("extra policy:", GenerationConfig.model_config.get("extra"))
print("dump:", GenerationConfig.model_validate({"temperature": 0.0}).model_dump())
cfg: GenerationConfigParam = {"temperature": 0.0} # pyright: reportAssignmentType
Runtime output:
google-genai: 2.18.1
temperature in GenerationConfig: False
extra policy: allow
dump: {'temperature': 0.0}
Type checker (pyright, standard mode):
error: Type "dict[str, float]" is not assignable to declared type "GenerationConfigParam"
"temperature" is an undefined item in type "GenerationConfigParam" (reportAssignmentType)
Bisected across wheels: present in 2.13.0, absent from 2.14.0 onward.
Questions
- Is this intentional — has the Interactions API stopped accepting
temperature/top_p, or is it a codegen omission? - If intentional: is
temperaturenow ignored server-side, or still honored? Callers doing deterministic structured extraction need to know whether removing it changes model behavior. A changelog entry and a deprecation window would help. - If a codegen bug: can the fields be restored?
Environment
- google-genai 2.18.1 (also reproduces on 2.14.0–2.18.0)
- Python 3.13, Linux
- Vorherrschende Sprache
- Python
- Sterne
- 4.1k
- Forks
- 1.1k
- Ø Merge
- 1 T. 21 Std.
- Gemergte PRs (30 T.)
- 103
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus googleapis/python-genai
-
Test import module that doesn't existEvtl. vergeben @Venkaiahbabuneelam hat das vor 25 Tagen übernommen. Offenpriority: p2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
googleapis/python-genai#3122 · 6 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Curated history keeps half a user turn when the model turn is invalidEvtl. vergeben @Venkaiahbabuneelam hat das vor 34 Tagen übernommen. Offenpriority: p2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
googleapis/python-genai#3051 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Unsubscripted typing.List and typing.Dict crash convert_if_exist_pydantic_model in AFCEvtl. vergeben @Venkaiahbabuneelam hat das vor 34 Tagen übernommen. Offenpriority: p2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
googleapis/python-genai#3044 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
googleapis/python-genai#3314 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
googleapis/python-genai#3313 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in googleapis/python-genai
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
pylint-dev/pylint#11791 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Rasterio granule reads never retry, so one 503 (Service Unavailable) fails the whole requestEvtl. vergeben @chuckwondo hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
developmentseed/titiler-cmr#305 ·
Maintainer antworten meist innerhalb von 1 Tag
-
community enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag