@cloudmind-ai/js
v0.2.3
Published
This is the JS SDK for Cloudmind, a platform that helps developers build high quality AI products.
Downloads
1
Readme
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]);