1.0.14 • Published 4 months ago

nuxt-ollama v1.0.14

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

Nuxt Ollama

npm version npm downloads License Nuxt

Simple integration of the official Ollama JavaScript Library for your Nuxt application.

You have to install Ollama to use this module. See Official Website to download it for your system.

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add nuxt-ollama

That's it! You can now use Nuxt Ollama in your Nuxt app ✨

Features

  • Vue 3 composable
  • Server utils

Usage

Usage on pages or server side:

const ollama = useOllama()

const response = await ollama.chat({
  model: 'llama3.1',
  messages: [{ role: 'user', content: 'Why is the sky blue?' }],
})
console.log(response.message.content)

See documentation for more information or examples.

Settings

// nuxt.config.ts
export default defineNuxtConfig({
  //...
  ollama: {
    protocol: 'http', // or 'https'
    host: 'localhost', //domain or ip address
    port: 11434, // port
    proxy: false, // use proxy
  }
})

Contribution

Contributions are welcome, feel free to open an issue or submit a pull request!

guidelines coming soon

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev
1.0.11

7 months ago

1.0.14

4 months ago

1.0.13

4 months ago

1.0.12

7 months ago

1.0.10

9 months ago

1.0.9

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago