ben-aaron188 | 3818e7c | 2022-09-08 17:49:01 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/test_request.R |
ben-aaron188 | 5bcd911 | 2022-09-10 21:33:50 +0200 | [diff] [blame] | 3 | \name{gpt3_test_request} |
| 4 | \alias{gpt3_test_request} |
ben-aaron188 | 3818e7c | 2022-09-08 17:49:01 +0200 | [diff] [blame] | 5 | \title{Make a test request to the GPT-3 API} |
| 6 | \usage{ |
ben-aaron188 | 5bcd911 | 2022-09-10 21:33:50 +0200 | [diff] [blame] | 7 | gpt3_test_request(verbose = F) |
ben-aaron188 | 3818e7c | 2022-09-08 17:49:01 +0200 | [diff] [blame] | 8 | } |
| 9 | \arguments{ |
| 10 | \item{verbose}{(boolean) if TRUE prints the actual prompt and GPT-3 completion of the test request (default: FALSE).} |
| 11 | } |
| 12 | \value{ |
| 13 | A message of success or failure of the connection. |
| 14 | } |
| 15 | \description{ |
ben-aaron188 | 5bcd911 | 2022-09-10 21:33:50 +0200 | [diff] [blame] | 16 | \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. |
ben-aaron188 | 3818e7c | 2022-09-08 17:49:01 +0200 | [diff] [blame] | 17 | } |
| 18 | \examples{ |
ben-aaron188 | 5bcd911 | 2022-09-10 21:33:50 +0200 | [diff] [blame] | 19 | gpt3_test_request() |
ben-aaron188 | 3818e7c | 2022-09-08 17:49:01 +0200 | [diff] [blame] | 20 | } |