#21499: fix #20721: add video and audio to models.input type union
agents
size: XS
## Summary
Model input config (`models.providers[].models[].input`) rejects `"video"` and `"audio"` values at zod validation, preventing users from declaring Gemini native multimodal capabilities.
## Changes
- `src/config/zod-schema.core.ts`: Added "video" and "audio" to input type union
- `src/config/types.models.ts`: Added "video" and "audio" to ModelDefinitionConfig.input type
## Testing
- [x] Code compiles and passes format check
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Added `"video"` and `"audio"` to the model input type union, allowing users to declare Gemini native multimodal capabilities in model configurations. The changes update both the TypeScript type definition and the Zod validation schema to accept these new input types alongside existing `"text"` and `"image"` types.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The changes are minimal, well-scoped, and follow the existing pattern. Both the TypeScript type and Zod schema are updated consistently. The new input types align with existing `MediaUnderstandingCapabilitiesSchema` that already supports video and audio, demonstrating consistency with the codebase's architecture.
- No files require special attention
<sub>Last reviewed commit: 3e12dca</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#20867: fix: allow 'video' and 'audio' in models.input config
by pierreeurope · 2026-02-19
90.2%
#20738: Fix model input schema to accept audio and video modalities
by Clawborn · 2026-02-19
89.1%
#20878: fix: Widen models.input to accept "video" and "audio" modalities
by marcodelpin · 2026-02-19
88.0%
#21298: fix(config): extend model input schema for video/audio modalities
by Alfa-ai-ccvs-tech · 2026-02-19
79.8%
#23211: fix: include modelByChannel in allowed channels validator
by westerbamos · 2026-02-22
68.5%
#22998: fix(config): add modelByChannel to allowed channels keys
by bbekdemir · 2026-02-21
67.9%
#23155: fix: add modelByChannel to allowed channel config keys
by tiagocampo · 2026-02-22
67.5%
#21502: fix #20871: update broken formal models repo link
by neipor · 2026-02-20
66.5%
#14057: feat(telegram): add ignoreMediaTypes config to skip specific inboun...
by pavelsamoylenko · 2026-02-11
66.5%
#10943: fix(config): resolve Control UI "Unsupported schema node" for confi...
by kraftbj · 2026-02-07
66.5%