1.0.504 • Published 10 months ago

@3nsai/genkitx-ollamadynamic v1.0.504

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Ollama plugin for Genkit

Installing the plugin

npm i --save genkitx-ollama

Using the plugin

import { genkit } from 'genkit';
import { ollama } from 'genkitx-ollama';

const ai = genkit({
  plugins: [
    ollama({
      models: [{ name: 'gemma' }],
      serverAddress: 'http://127.0.0.1:11434', // default local address
    }),
  ],
});

async function main() {
  const { text } = await ai.generate({
    prompt: 'hi Gemini!',
    model: 'ollama/gemma',
  });
  console.log(text);
}

main();

The sources for this package are in the main Genkit repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Genkit documentation.

License: Apache 2.0

1.0.504

10 months ago

1.0.503

10 months ago

1.0.502

10 months ago

1.0.501

10 months ago

1.0.5

10 months ago