Skip to main content

NIBittensorChatModel

danger

此模块已被弃用,不再受支持。以下文档不适用于 0.2.0 或更高版本。

¥This module has been deprecated and is no longer supported. The documentation below will not work in versions 0.2.0 or later.

LangChain.js 为神经互联网的 Bittensor 聊天模型提供实验性支持。

¥LangChain.js offers experimental support for Neural Internet's Bittensor chat models.

以下是一个例子:

¥Here's an example:

import { NIBittensorChatModel } from "langchain/experimental/chat_models/bittensor";
import { HumanMessage } from "@langchain/core/messages";

const chat = new NIBittensorChatModel();
const message = new HumanMessage("What is bittensor?");
const res = await chat.invoke([message]);
console.log({ res });
/*
{
res: "\nBittensor is opensource protocol..."
}
*/

¥Related