Perform an API request to interact with language models
perform_api_request(
request,
.api,
.stream = FALSE,
.timeout = 60,
parse_response_fn = NULL
)
A list containing the assistant's reply and response headers.
The httr2 request object.
The API identifier (e.g., "claude", "openai").
Stream the response if TRUE.
Request timeout in seconds.
A function to parse the assistant's reply.