OpenRouter API Processor
OpenRouter API Processor
Details
Concrete implementation of BaseAPIProcessor for OpenRouter models.
Handles OpenRouter-specific API calls, authentication, and response parsing.
Methods
Inherited methods
Method new()
Initialize OpenRouter processor
Method get_default_api_url()
Get default OpenRouter API URL
Usage
OpenRouterProcessor$get_default_api_url()
Method make_api_call()
Make API call to OpenRouter
Usage
OpenRouterProcessor$make_api_call(chunk_content, model, api_key)
Extract response content from OpenRouter API response
Usage
OpenRouterProcessor$extract_response_content(response, model)
Method clone()
The objects of this class are cloneable with this method.
Usage
OpenRouterProcessor$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.