以编程方式使用文档

LangChain.js 为 Neural Internet 的 Bittensor 聊天模型提供实验性支持。

示例:

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

相关