Learn R Programming

perplexR (version 0.0.3)

responseParser: Parse Perplexity API Response

Description

Takes the raw response from the Perplexity API and extracts the text content from it.

Usage

responseParser(raw)

Value

Returns a character vector containing the text content of the response.

Arguments

raw

The raw object returned by the Perplexity API.