enrichTextContent {chatAI4R}R Documentation

Enrich Text Content

Description

This function doubles the amount of text without changing its meaning. The GPT-4 model is currently recommended for text generation. It can either read from the RStudio selection or the clipboard.

Usage

enrichTextContent(Model = "gpt-4-0613", SelectedCode = TRUE, verbose = TRUE)

Arguments

Model

A character string specifying the AI model to be used for text enrichment. Default is "gpt-4-0613".

SelectedCode

A logical flag to indicate whether to read from RStudio's selected text. Default is TRUE.

verbose

Logical flag to indicate whether to display the generated text. Default is TRUE.

Details

Enrich Text Content

Value

If SelectedCode is TRUE, the enriched text is inserted into the RStudio editor and a message "Finished!!" is returned. Otherwise, the enriched text is placed into the clipboard.

Author(s)

Satoshi Kume

Examples

## Not run: 
  enrichTextContent(Model = "gpt-4-0613", SelectedCode = TRUE)

## End(Not run)

[Package chatAI4R version 0.2.10 Index]