tibetan-ml-kit
TypeScript icon, indicating that this package has built-in type declarations

0.0.5-dev • Public • Published

tibetan-ml-kit

Tibetan MLKt

Tibetan MLKt for JavaScript

[!CAUTION] Using Tibetan MLKit SDK for JavaScript directly from a client-side app is recommended for prototyping only. If you plan to enable billing, we strongly recommend that you call the Google AI Gemini API only server-side to keep your API key safe. You risk potentially exposing your API key to malicious actors if you embed your API key directly in your JavaScript app or fetch it remotely at runtime.

The Tibetan MLKit SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. This SDK supports use cases like:

  • Generate text from text-only input
  • (for Node.js) Embedding

You can use this JavaScript SDK for applications built with Node.js or for web apps.

For example, with just a few lines of code, you can access Gemini's multimodal capabilities to generate text from text-and-image input.

MLKit includes

  1. Online translation.
    git clone https://github.com/google/generative-ai-js

  2. Chat in Tibetan using Gemini model.

  3. and more coming soon...

To initate chat in Node.js:

const server = http.createServer(app);
const tibetanMlKit = new TibetanMlKit(server, {
  apiKey: "API_KEY",
  modelName: "gemini-1.5-flash-latest",
});

To transate in Node.js:

 const data = await TibetanMlKit.translateWithSync({
      input: "test",
      direction: "bo",
    });
    return res.json(data);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.5-dev4latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.5-dev4
0.0.4-dev0
0.0.3-dev0
0.0.2-dev0
0.0.1-dev0
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i tibetan-ml-kit

Weekly Downloads

3

Version

0.0.5-dev

License

MIT

Unpacked Size

21.1 kB

Total Files

19

Last publish

Collaborators

  • kharagedition