Skip to content
1 min read · 44 words

Type Alias: GeminiResponseModality ​

ts
type GeminiResponseModality = "TEXT" | "IMAGE";

Defined in: src/batteries/generation/gemini/types.ts:38

The response modalities Gemini is asked to return. 'IMAGE' is what actually yields generated media; 'TEXT' is included by default alongside it so refusal/safety text (when present) arrives in the same response instead of a separate call.