add_text: Add text prompt to Gemini API body

View source: R/utils.R

add_textR Documentation

Add text prompt to Gemini API body

Description

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

Usage

add_text(body, prompt)

Arguments

body

A list representing the current Gemini API request body.

prompt

Character. The text prompt to add.

Value

The updated body list with the text prompt added.


gemini.R documentation built on Sept. 1, 2025, 5:10 p.m.

Related to add_text in gemini.R...