tests/testthat/test-list_engines.R

#-------------------------------------------------------------------------------
# list_engines()

function_name <- "list_engines"

test_argument_validation(
    function_name = function_name,
    argument_name = "openai_api_key",
    argument_type = "string",
    allow_null = FALSE,
    suppress_warnings = TRUE
)

test_argument_validation(
    function_name = function_name,
    argument_name = "openai_organization",
    argument_type = "string",
    allow_null = TRUE,
    suppress_warnings = TRUE
)

Try the openai package in your browser

Any scripts or data that you put into this service are public.

openai documentation built on March 31, 2023, 11:56 p.m.