convertBullet2Sentence {chatAI4R} | R Documentation |
convertBullet2Sentence
Description
Convert bullet points to sentences using OpenAI GPT model.
Usage
convertBullet2Sentence(
Model = "gpt-4-0613",
temperature = 1,
verbose = TRUE,
SpeakJA = FALSE,
SelectedCode = TRUE
)
Arguments
Model |
The OpenAI GPT model to use for text generation. Default is "gpt-4-0613". |
temperature |
The temperature parameter for text generation. Default is 1. |
verbose |
Logical flag to indicate whether to display progress. Default is TRUE. |
SpeakJA |
Logical flag to indicate whether to use Japanese speech output. Default is FALSE. |
SelectedCode |
Logical flag to indicate whether to use selected text in RStudio. Default is TRUE. |
Details
Convert Bullet Points to Sentences
This function takes bullet points as input and converts them into sentences. The function uses the OpenAI GPT model for text generation to assist in the conversion. The function can either take the selected text from the RStudio environment or from the clipboard.
Value
Inserts the converted sentences into the RStudio editor if 'SelectedCode' is TRUE, otherwise writes to clipboard.
Author(s)
Satoshi Kume
Examples
## Not run:
convertBullet2Sentence(Model = "gpt-4-0613", SelectedCode = FALSE)
## End(Not run)