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