nuxt-ollama 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -31
- package/dist/module.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,8 @@ You have to install Ollama to use this module. See [Official Website](https://ol
|
|
|
12
12
|
- [✨ Release Notes](/CHANGELOG.md)
|
|
13
13
|
|
|
14
14
|
- [🏀 Online playground](https://stackblitz.com/github/jericho1060/nuxt-ollama?file=playground%2Fapp.vue)
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
- [📖 Documentation](https://nuxt-ollama.jericho.dev/)
|
|
16
17
|
|
|
17
18
|
## Quick Setup
|
|
18
19
|
|
|
@@ -22,35 +23,6 @@ Install the module to your Nuxt application with one command:
|
|
|
22
23
|
npx nuxi module add nuxt-ollama
|
|
23
24
|
```
|
|
24
25
|
|
|
25
|
-
<details>
|
|
26
|
-
<summary>Or install it with your favorite package manager:</summary>
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# NPM:
|
|
30
|
-
npm install nuxt-ollama
|
|
31
|
-
|
|
32
|
-
# PNPM:
|
|
33
|
-
pnpm add nuxt-ollama
|
|
34
|
-
|
|
35
|
-
# Yarn:
|
|
36
|
-
yarn add nuxt-ollama
|
|
37
|
-
|
|
38
|
-
# Bun
|
|
39
|
-
bun add nuxt-ollama
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Add `nuxt-ollama` to the `modules` section of `nuxt.config.js`:
|
|
43
|
-
|
|
44
|
-
```ts
|
|
45
|
-
// nuxt.config.ts
|
|
46
|
-
export default {
|
|
47
|
-
modules: [
|
|
48
|
-
'nuxt-ollama',
|
|
49
|
-
],
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
</details>
|
|
53
|
-
|
|
54
26
|
That's it! You can now use Nuxt Ollama in your Nuxt app ✨
|
|
55
27
|
|
|
56
28
|
## Features
|
|
@@ -58,6 +30,8 @@ That's it! You can now use Nuxt Ollama in your Nuxt app ✨
|
|
|
58
30
|
- Vue 3 composable
|
|
59
31
|
- Server utils
|
|
60
32
|
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
61
35
|
Usage on pages or server side:
|
|
62
36
|
|
|
63
37
|
```ts
|
|
@@ -70,7 +44,7 @@ const response = await ollama.chat({
|
|
|
70
44
|
console.log(response.message.content)
|
|
71
45
|
```
|
|
72
46
|
|
|
73
|
-
See
|
|
47
|
+
See [documentation](https://nuxt-ollama.jericho.dev/) for more information or examples.
|
|
74
48
|
|
|
75
49
|
## Settings
|
|
76
50
|
|
package/dist/module.json
CHANGED