0.2.3 โ€ข Published 11 months ago

@cloudmind-ai/js v0.2.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

Cloudmind is a platform that helps developers build and rigorously improve the quality of AI features.

This library allows you to monitor your LLM activity via Cloudmind, making it easier to debug, evaluate and improve.

Use it with any LLM model and custom agents (not limited to OpenAI). This is a typed JS library compatible with Node.js. It is compatible with Langchain JS.

To get started, get an API key by registering here.

Full Docs

More docs and examples can be found at cloudmind.ai/docs

๐Ÿ› ๏ธ Installation

npm install @cloudmind-ai/js

โš™๏ธ Configuration

You can configure the application using environment variables.

First, obtain your Cloudmind API Key from Cloudmind.

Set your API key as an environment variable:

CLOUDMIND_API_KEY=your-cloudmind-api-key

๐Ÿš€ Basic Usage with OpenAI

import { monitorOpenAI } from "cloudmind/openai";

// Extend OpenAI object w the monitor
const openai = monitorOpenAI(new OpenAI());

// Use OpenAI as usual
const result = await openai.chat.completions.create({
  messages: [
    {
      role: "user",
      content: "Hello!",
    },
  ],
});

console.log(result.choices[0]);
0.2.3

11 months ago