Skip to content
1 min read · 54 words

Variable: E_GEMINI_GENERATION_MALFORMED_RESPONSE

ts
const E_GEMINI_GENERATION_MALFORMED_RESPONSE: CreatedException<[string]>;

Defined in: src/batteries/generation/gemini/exceptions.ts:62

Thrown when a 2xx response body cannot be parsed into the expected candidates/parts shape, or when it contains zero image parts (e.g. a safety refusal returning text only). In the zero-image case the detail string includes any text parts' content so refusals surface legibly. Non-fatal. Printf arg: [detail].