Table of Contents

Constructor TextTranslation

Namespace
LMKit.Translation
Assembly
LM-Kit.NET.dll

TextTranslation(LLM)

Initializes a new instance of the TextTranslation class.

public TextTranslation(LLM model)

Parameters

model LLM

A LLM object that specifies the LLM model to be inferred by the instance.

Exceptions

ArgumentNullException

Thrown when the provided model argument is null.

InvalidModelException

Thrown when the provided model does not meet the required specifications or is incompatible with the TextTranslation service.