#6185·genkit

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 no model_config, so pydantic's default extra='ignore' silently drops multiSpeakerVoiceConfig and languageCode, both supported by JS (js/plugins/google-genai/src/googleai/gemini.ts:250,319).
  • ImagenConfigSchema is an empty extra='allow' class (models/imagen.py:151-154), typing nothing.
  • Lyria is dead code but publicly exported: 'lyria' is in UNROUTABLE_FAMILIES (_routing.py:57) yet LyriaConfig/LyriaVersion are 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.