ben-aaron188 | 42a91d2 | 2022-09-08 20:38:22 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/make_request.R |
| 3 | \name{gpt3.make_request} |
| 4 | \alias{gpt3.make_request} |
| 5 | \title{Make a test request to the GPT-3 API} |
| 6 | \usage{ |
| 7 | gpt3.make_request( |
| 8 | prompt_, |
| 9 | model_ = "text-davinci-002", |
| 10 | output_type_ = "string_only", |
| 11 | suffix_ = NULL, |
| 12 | max_tokens_ = 256, |
| 13 | temperature_ = 0.9, |
| 14 | top_p_ = 1, |
| 15 | n_ = 1, |
| 16 | stream_ = F, |
| 17 | logprobs_ = NULL, |
| 18 | echo_ = F, |
| 19 | stop_ = NULL, |
| 20 | presence_penalty_ = 0, |
| 21 | frequency_penalty_ = 0, |
| 22 | best_of_ = 1, |
| 23 | logit_bias_ = NULL |
| 24 | ) |
| 25 | } |
| 26 | \arguments{ |
| 27 | \item{verbose}{(boolean) if TRUE prints the actual prompt and GPT-3 completion of the test request (default: FALSE).} |
| 28 | } |
| 29 | \value{ |
| 30 | A message of success or failure of the connection. |
| 31 | } |
| 32 | \description{ |
| 33 | \code{gpt3.test_request()} sends a basic \href{https://beta.openai.com/docs/api-reference/completions}{completion request} to the Open AI GPT-3 API. |
| 34 | } |
| 35 | \examples{ |
| 36 | gpt3.test_request() |
| 37 | } |