Skip to content
1 min read · 38 words

Type Alias: GeminiRequestPart ​

ts
type GeminiRequestPart =
  | {
      text: string;
    }
  | {
      inlineData: {
        data: string;
        mimeType: string;
      };
    };

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

A single content part in a Gemini generateContent request. Requests always send camelCaseinlineData — probe-confirmed to be accepted whether the request is routed through the LB or hits Google directly.