Learn R Programming

aisdk (version 1.1.0)

DeepSeekLanguageModel: DeepSeek Language Model Class

Description

Language model implementation for DeepSeek's chat completions API. Inherits from OpenAI model but adds support for DeepSeek-specific features like reasoning content extraction from deepseek-reasoner model.

Arguments

Super classes

aisdk::LanguageModelV1 -> aisdk::OpenAILanguageModel -> DeepSeekLanguageModel

Methods

Inherited methods


Method parse_response()

Parse the API response into a GenerateResult. Overrides parent to extract DeepSeek-specific reasoning_content.

Usage

DeepSeekLanguageModel$parse_response(response)

Arguments

response

The parsed API response.

Returns

A GenerateResult object.


Method clone()

The objects of this class are cloneable with this method.

Usage

DeepSeekLanguageModel$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.