1.0.10 • Published 5 months ago

@filtro/sdk v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@filtro/sdk

The official Node.js and browser API package for www.filtro.ai. Empowering your applications with AI, while safeguarding sensitive data across all third-party models, in just a few lines of Python code.

⚙️ Install

yarn add @filtro/sdk

🗣️ Usage

import filtro from "@filtro/sdk";

const { mask, clear } = filtro({
  baseURL: "http://localhost:8000",
});

async function run() {
  const { masked_string, mapping } = await mask(
    "Hi my name is Gianmarco Rengucci! I am a software engineer at Apple, here in Milan. Whats up?"
  );

  // send to openai
  const chat = new ChatOpenAI({ temperature: 0 });
  const response = await chat.call([new HumanChatMessage(masked_string)]);

  const clear_string = await clear(response, mapping);
}

run();

NPM: https://www.npmjs.com/package/@filtro/sdk

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.10

5 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago