langchain.js
    Preparing search index...

    Prefer @langchain/yandex

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    apiKey?: string
    iamToken?: string
    maxTokens: number = 1700
    model: string = "general"
    temperature: number = 0.6

    Methods

    • Returns {}

    • Returns string