This function sets up a POST request to the Cohere Chat API's chat endpoint and includes necessary headers such as 'accept', 'content-type', and 'Authorization' with a bearer token.
Usage
request_base_cohere(api_key = Sys.getenv("COHERE_API_KEY"))
This function sets up a POST request to the Cohere Chat API's chat endpoint and includes necessary headers such as 'accept', 'content-type', and 'Authorization' with a bearer token.
request_base_cohere(api_key = Sys.getenv("COHERE_API_KEY"))