temperature and top_p silently removed from Interactions GenerationConfig in 2.14.0
Les mainteneurs répondent en général sous 1 jour
@kkorpal y travaille déjà.
Depuis le 19/8/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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
- Langage dominant
- Python
- Étoiles
- 4.1k
- Forks
- 1.1k
- Merge moyen
- 1 j 20 h
- PR mergées (30 j)
- 109
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de googleapis/python-genai
-
Test import module that doesn't existPeut-être pris @Venkaiahbabuneelam l’a pris il y a 23 jours. Ouvertepriority: p2 type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
googleapis/python-genai#3122 · 6 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Curated history keeps half a user turn when the model turn is invalidPeut-être à nouveau libre @Venkaiahbabuneelam l’a pris il y a 32 jours, et aucune pull request n’est ouverte. Ouvertepriority: p2 type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
googleapis/python-genai#3051 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Unsubscripted typing.List and typing.Dict crash convert_if_exist_pydantic_model in AFCPeut-être pris @Venkaiahbabuneelam l’a pris il y a 32 jours. Ouvertepriority: p2 type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
googleapis/python-genai#3044 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Function declaration rejected: required naming a property defined only in anyOf ("requires unspecified property")Peut-être pris @Venkaiahbabuneelam l’a pris il y a 7 jours. Ouvertepriority: p2 status:awaiting user response type: bug
Difficulté 4/5 3-5 jours Accessibilité débutants 47/100
googleapis/python-genai#3250 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
generate_content_stream fails with UnknownApiResponseError when a streamed text part contains U+2028 / U+2029 / U+0085 (httpx transport)Peut-être pris @Venkaiahbabuneelam l’a pris il y a 8 jours. Ouvertepriority: p2 status:awaiting user response type: bug
googleapis/python-genai#3243 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de googleapis/python-genai
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
aws-samples/sample-per-model-bedrock#782 ·
Les mainteneurs répondent en général sous 1 jour
-
Google text documents are base64-encoded twicePeut-être pris @feiiiiii5 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
coveragepy/coveragepy#2364 ·
Les mainteneurs répondent en général sous 1 jour
-
[Plugin] astrbot_plugin_sd_drawOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100