Example

const chat = new ChatYandexGPT({});
// The assistant is set to translate English to French.
const res = await chat.invoke([
new SystemMessage(
"You are a helpful assistant that translates English to French."
),
new HumanMessage("I love programming."),
]);

Hierarchy

Constructors

Properties

maxTokens: number = 1700
model: string = "yandexgpt-lite"
modelVersion: string = "latest"
temperature: number = 0.6
apiKey?: string
folderID?: string
iamToken?: string
modelURI?: string

Generated using TypeDoc