A function that sends a request to the OpenAI API and returns the response.
Source:R/service-openai_api_calls.R
query_api_openai.Rd
A function that sends a request to the OpenAI API and returns the response.
Usage
query_api_openai(
task,
request_body,
openai_api_key = Sys.getenv("OPENAI_API_KEY")
)