Skip to main content

NIBittensorChatModel

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..."
}
*/

API Reference:


Help us out by providing feedback on this documentation page: