Skip to contents

DeepSeek API Processor

DeepSeek API Processor

Details

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

Super class

mLLMCelltype::BaseAPIProcessor -> DeepSeekProcessor

Public fields

api_url

DeepSeek API endpoint URL

Methods

Inherited methods


Method new()

Initialize DeepSeek processor

Usage


Method make_api_call()

Make API call to DeepSeek

Usage

DeepSeekProcessor$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


Method extract_response_content()

Extract response content from DeepSeek API response

Usage

DeepSeekProcessor$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

DeepSeekProcessor$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.