@mediapipe/tasks-genai
TypeScript icon, indicating that this package has built-in type declarations

0.10.12 • Public • Published

MediaPipe Tasks GenAI Package

This package contains the GenAI tasks for MediaPipe.

LLM Inference

The MediaPipe LLM Inference task generates text response from input text.

const genai = await FilesetResolver.forGenAiTasks(
    "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-genai/wasm"
);
const llmInference = await LlmInference.createFromModelPath(genai, MODEL_URL);
const response = await llmInference.generateResponse(inputText);

Package Sidebar

Install

npm i @mediapipe/tasks-genai

Weekly Downloads

433

Version

0.10.12

License

Apache-2.0

Unpacked Size

21.1 MB

Total Files

11

Last publish

Collaborators

  • mrschmidt
  • tmullen
  • dancingplatypus
  • google-wombot
  • chuoling