Skip to contents

This is an RStudio addin function that should become available after the package is installed.

Usage

completion_chat(model_type = "gpt-4")

Arguments

model_type

string, default "gpt-4"

Value

string to console

Details

Highlight text in an editor window while using Rstudio, then select the addin from the drop-down menu.

This function sends the selected text to a gpt-4 model

The model receives the highlighted text, generates a completion prompt, and returns the generated text to the console.