| api_config | R Documentation |
api_config Class
api_config Class
A R6 class to manage config.
new()Initialize the api_config object
api_config$new()
set_api_key()Configure the api_key settings.
api_config$set_api_key(api_key)
api_keyyour openai_key
set_proxy()Configure the proxy settings.
api_config$set_proxy(proxy_ip, proxy_port)
proxy_ipcharacter Required. The IP address of the proxy.
proxy_portcharacter Required. The port number of the proxy.
get_proxy()Configure the proxy gettings.
api_config$get_proxy()
get_api_key()Api key gettings.
api_config$get_api_key()
get_api_endpoints()Endpoints gettings.
api_config$get_api_endpoints()
clone()The objects of this class are cloneable with this method.
api_config$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.