Skip to main content

NIBittensorChatModel

danger

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

Was this page helpful?


You can also leave detailed feedback on GitHub.