OpenAI API Processor
OpenAI API Processor
Details
Concrete implementation of BaseAPIProcessor for OpenAI models.
Handles OpenAI-specific API calls, authentication, and response parsing.
Public fields
api_url
OpenAI API endpoint URL
Methods
Inherited methods
Method new()
Initialize OpenAI processor
Method make_api_call()
Make API call to OpenAI
Usage
OpenAIProcessor$make_api_call(chunk_content, model, api_key)
Arguments
chunk_content
Content for this chunk
model
Model identifier
api_key
API key
Returns
httr response object
Extract response content from OpenAI API response
Usage
OpenAIProcessor$extract_response_content(response, model)
Arguments
response
httr response object
model
Model identifier
Returns
Extracted text content
Method clone()
The objects of this class are cloneable with this method.
Usage
OpenAIProcessor$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.