nuxt-ollama 1.0.5 → 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 CHANGED
@@ -12,7 +12,9 @@ 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
- <!-- - [📖 &nbsp;Documentation](https://example.com) -->
15
+
16
+ - [📖 &nbsp;Documentation](https://nuxt-ollama.jericho.dev/)
17
+
16
18
  ## Quick Setup
17
19
 
18
20
  Install the module to your Nuxt application with one command:
@@ -21,35 +23,6 @@ Install the module to your Nuxt application with one command:
21
23
  npx nuxi module add nuxt-ollama
22
24
  ```
23
25
 
24
- <details>
25
- <summary>Or install it with your favorite package manager:</summary>
26
-
27
- ```bash
28
- # NPM:
29
- npm install nuxt-ollama
30
-
31
- # PNPM:
32
- pnpm add nuxt-ollama
33
-
34
- # Yarn:
35
- yarn add nuxt-ollama
36
-
37
- # Bun
38
- bun add nuxt-ollama
39
- ```
40
-
41
- Add `nuxt-ollama` to the `modules` section of `nuxt.config.js`:
42
-
43
- ```ts
44
- // nuxt.config.ts
45
- export default {
46
- modules: [
47
- 'nuxt-ollama',
48
- ],
49
- }
50
- ```
51
- </details>
52
-
53
26
  That's it! You can now use Nuxt Ollama in your Nuxt app ✨
54
27
 
55
28
  ## Features
@@ -57,6 +30,8 @@ That's it! You can now use Nuxt Ollama in your Nuxt app ✨
57
30
  - Vue 3 composable
58
31
  - Server utils
59
32
 
33
+ ## Usage
34
+
60
35
  Usage on pages or server side:
61
36
 
62
37
  ```ts
@@ -69,13 +44,14 @@ const response = await ollama.chat({
69
44
  console.log(response.message.content)
70
45
  ```
71
46
 
72
- See official [Ollama JavaScript Library documentation](https://github.com/ollama/ollama-js) for more information or examples.
47
+ See [documentation](https://nuxt-ollama.jericho.dev/) for more information or examples.
73
48
 
74
49
  ## Settings
75
50
 
76
51
  ```ts
77
52
  // nuxt.config.ts
78
53
  export default defineNuxtConfig({
54
+ //...
79
55
  ollama: {
80
56
  protocol: 'http', // or 'https'
81
57
  host: 'localhost', //domain or ip address
@@ -96,26 +72,13 @@ Contributions are welcome, feel free to open an issue or submit a pull request!
96
72
 
97
73
  ```bash
98
74
  # Install dependencies
99
- bun install
75
+ npm install
100
76
 
101
77
  # Generate type stubs
102
- bun dev:prepare
78
+ npm run dev:prepare
103
79
 
104
80
  # Develop with the playground
105
- bun dev
106
-
107
- # Build the playground
108
- bun dev:build
109
-
110
- # Run ESLint
111
- bun lint
112
-
113
- # Run Vitest
114
- bun test
115
- bun test:watch
116
-
117
- # Release new version
118
- bun release
81
+ npm run dev
119
82
  ```
120
83
 
121
84
  </details>
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.12"
6
6
  },
7
- "version": "1.0.5",
7
+ "version": "1.0.7",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.1",
10
10
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -26,6 +26,11 @@ const module = defineNuxtModule({
26
26
  as: "useOllama",
27
27
  from: resolver.resolve("./runtime/composables/useOllama")
28
28
  });
29
+ addImports({
30
+ name: "useOllamaUtils",
31
+ as: "useOllamaUtils",
32
+ from: resolver.resolve("./runtime/composables/useOllamaUtils")
33
+ });
29
34
  addServerImportsDir(resolver.resolve("./runtime/server/utils"));
30
35
  }
31
36
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ollama",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Easy ollama integration for Nuxt",
5
5
  "repository": "jericho1060/nuxt-ollama",
6
6
  "license": "MIT",