This function sends a request to a specific OpenAI API task
endpoint at
the base URL https://api.openai.com/v1
, and authenticates with
an API key using a Bearer token.
Usage
request_base(task, token = Sys.getenv("OPENAI_API_KEY"))
This function sends a request to a specific OpenAI API task
endpoint at
the base URL https://api.openai.com/v1
, and authenticates with
an API key using a Bearer token.
request_base(task, token = Sys.getenv("OPENAI_API_KEY"))