chore(py/plugins/google-genai): SpeechConfigSchema drops fields, ImagenConfigSchema is empty, Lyria is dead code but exported
Author: cabljacCreated Aug 26, 2026Updated Sep 21, 2026
Labelspython
Three dead or silently lossy config surfaces:
SpeechConfigSchema(gemini.py:450-459) has nomodel_config, so pydantic's defaultextra='ignore'silently dropsmultiSpeakerVoiceConfigandlanguageCode, both supported by JS (js/plugins/google-genai/src/googleai/gemini.ts:250,319).ImagenConfigSchemais an emptyextra='allow'class (models/imagen.py:151-154), typing nothing.- Lyria is dead code but publicly exported:
'lyria'is inUNROUTABLE_FAMILIES(_routing.py:57) yetLyriaConfig/LyriaVersionare exported from__init__.py:97,126-127.
Fix: type the speech config fully, populate or remove ImagenConfigSchema, and drop the unreachable Lyria exports (or route Lyria). Public surface should be frozen before v1.
Source: genkit-ai/genkit