nuxt-ollama 1.0.1 → 1.0.3

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
@@ -7,46 +7,16 @@
7
7
 
8
8
  Simple integration of the official Ollama JavaScript Library for your Nuxt application.
9
9
 
10
+ You have to install Ollama to use this module. See [Official Website](https://ollama.com/download) to download it for your system.
11
+
10
12
  - [✨  Release Notes](/CHANGELOG.md)
11
13
 
12
- <!-- - [🏀 Online playground](https://stackblitz.com/github/jericho/nuxt-ollama?file=playground%2Fapp.vue) -->
14
+ - [🏀 Online playground](https://stackblitz.com/github/jericho1060/nuxt-ollama?file=playground%2Fapp.vue)
13
15
  <!-- - [📖 &nbsp;Documentation](https://example.com) -->
14
-
15
- ## Features
16
-
17
- - Vue 3 composable
18
- - Server utils
19
-
20
- usage on pages or server side:
21
- ```ts
22
- const ollama = useOllama()
23
-
24
- const response = await ollama.chat({
25
- model: 'llama3.1',
26
- messages: [{ role: 'user', content: 'Why is the sky blue?' }],
27
- })
28
- console.log(response.message.content)
29
- ```
30
-
31
- See official [Ollama JavaScript Library documentation](https://github.com/ollama/ollama-js) for more information or examples.
32
-
33
- ## Settings
34
-
35
- ```ts
36
- // nuxt.config.ts
37
- export default defineNuxtConfig({
38
- ollama: {
39
- protocol: 'http', // or 'https'
40
- host: 'localhost', //domain or ip address
41
- port: 11434, // port
42
- proxy: false, // use proxy
43
- }
44
- })
45
- ```
46
-
47
16
  ## Quick Setup
48
17
 
49
- Install the module to your Nuxt application with one command: *(Pending module approval on Nuxt Module)*
18
+ Install the module to your Nuxt application with one command:
19
+
50
20
  ```bash
51
21
  npx nuxi module add nuxt-ollama
52
22
  ```
@@ -82,6 +52,39 @@ export default {
82
52
 
83
53
  That's it! You can now use Nuxt Ollama in your Nuxt app ✨
84
54
 
55
+ ## Features
56
+
57
+ - Vue 3 composable
58
+ - Server utils
59
+
60
+ Usage on pages or server side:
61
+
62
+ ```ts
63
+ const ollama = useOllama()
64
+
65
+ const response = await ollama.chat({
66
+ model: 'llama3.1',
67
+ messages: [{ role: 'user', content: 'Why is the sky blue?' }],
68
+ })
69
+ console.log(response.message.content)
70
+ ```
71
+
72
+ See official [Ollama JavaScript Library documentation](https://github.com/ollama/ollama-js) for more information or examples.
73
+
74
+ ## Settings
75
+
76
+ ```ts
77
+ // nuxt.config.ts
78
+ export default defineNuxtConfig({
79
+ ollama: {
80
+ protocol: 'http', // or 'https'
81
+ host: 'localhost', //domain or ip address
82
+ port: 11434, // port
83
+ proxy: false, // use proxy
84
+ }
85
+ })
86
+ ```
87
+
85
88
  ## Contribution
86
89
 
87
90
  Contributions are welcome, feel free to open an issue or submit a pull request!
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.12"
6
6
  },
7
- "version": "1.0.1",
7
+ "version": "1.0.3",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.1",
10
10
  "unbuild": "2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ollama",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Easy ollama integration for Nuxt",
5
5
  "repository": "jericho1060/nuxt-ollama",
6
6
  "license": "MIT",