View source: R/api_functions.R
perform_api_request | R Documentation |
Perform an API request to interact with language models
perform_api_request(
request,
.api,
.stream = FALSE,
.timeout = 60,
parse_response_fn = NULL
)
request |
The httr2 request object. |
.api |
The API identifier (e.g., "claude", "openai"). |
.stream |
Stream the response if TRUE. |
.timeout |
Request timeout in seconds. |
parse_response_fn |
A function to parse the assistant's reply. |
A list containing the assistant's reply and response headers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.