Learn R Programming

gemini.R (version 0.17.2)

add_text: Add text prompt to Gemini API body

Description

Appends a text prompt part to the Gemini API request body.

Usage

add_text(body, prompt)

Value

The updated body list with the text prompt added.

Arguments

body

A list representing the current Gemini API request body.

prompt

Character. The text prompt to add.