ask_gpt | R Documentation |
The function 'ask_gpt' sends message to ChatGPT and shows the results via the console
ask_gpt(
message,
model = "text-davinci-003",
maxtoken = 300,
tempvalue = 0,
return = "text"
)
message |
The prompt for ChatGPT |
model |
The ChatGPT model |
maxtoken |
Maximal numbers and tokens |
tempvalue |
The temperature |
return |
Returns answer as text via the console (default) or raw as a character vector |
A character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.