Skip to content

IntelliNode v2.2.1

Latest
Compare
Choose a tag to compare
@intelligentnode intelligentnode released this 05 Feb 23:40
· 23 commits to main since this release
78b100b

New Features 🌟

  • IntelliNode now supports both backend and frontend environments with a unified API.
  • Improved streaming responses for AI mode.
  • Support latest llama and deepseek.

How to Use Frontend and Backend 🤖

IntelliNode for frontend:

<script src="https://cdn.jsdelivr.net/npm/intellinode@latest/front/intellinode.min.js"></script>

IntelliNode for backend:

npm i intellinode

Whether you're running on Node.js or directly in the browser, your code remains the same!

const { Chatbot, SupportedChatModels } = require("intellinode");

// Create a chatbot instance with your API key
const bot = new Chatbot("YOUR_API_KEY", SupportedChatModels.COHERE);

// Prepare your input as usual
const input = new CohereInput("You are a helpful assistant.");
input.addUserMessage("What is the weather like today?");

// Send the request and log the response
bot.chat(input).then(response => {
  console.log(response);
});

For more details, check the docs.