Skip to contents

Grok API Processor

Grok API Processor

Details

Concrete implementation of BaseAPIProcessor for Grok models. Handles Grok-specific API calls, authentication, and response parsing.

Super class

mLLMCelltype::BaseAPIProcessor -> GrokProcessor

Methods

Inherited methods


Method new()

Initialize Grok processor

Usage

GrokProcessor$new(base_url = NULL)


Method get_default_api_url()

Get default Grok API URL

Usage

GrokProcessor$get_default_api_url()


Method make_api_call()

Make API call to Grok

Usage

GrokProcessor$make_api_call(chunk_content, model, api_key)


Method extract_response_content()

Extract response content from Grok API response

Usage

GrokProcessor$extract_response_content(response, model)


Method clone()

The objects of this class are cloneable with this method.

Usage

GrokProcessor$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.