Skip to content

Commit ff15270

Browse files
committed
used fs module somehow
1 parent 9d9f3fa commit ff15270

File tree

5 files changed

+374
-5
lines changed

5 files changed

+374
-5
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"@fortawesome/fontawesome-svg-core": "^6.6.0",
1414
"@fortawesome/free-solid-svg-icons": "^6.6.0",
1515
"@fortawesome/vue-fontawesome": "^3.0.8",
16+
"@rollup/plugin-commonjs": "^26.0.1",
17+
"@rollup/plugin-node-resolve": "^15.2.3",
1618
"@tauri-apps/api": "^1",
1719
"axios": "^1.7.2",
1820
"markdown-it": "^14.1.0",

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"bundle": {
3131
"active": true,
3232
"targets": "all",
33-
"identifier": "com.tauri.dev",
33+
"identifier": "com.ollama.gui",
3434
"icon": [
3535
"icons/32x32.png",
3636
"icons/128x128.png",

src/components/Greet.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { ref, onMounted, watch } from "vue";
33
import { invoke } from "@tauri-apps/api/tauri";
44
import axios from 'axios';
5-
import { Ollama } from 'ollama'
5+
import * as Ollama from 'ollama/browser';
66
import MarkdownIt from "markdown-it";
77
import MarkdownItHighlightjs from "markdown-it-highlightjs";
88
import MarkdownItSub from "markdown-it-sub";
@@ -35,7 +35,7 @@ const page = ref('chat')
3535
// DOM
3636
const chat_div = ref(null)
3737
38-
const ollama = new Ollama({ host: 'http://127.0.0.1:11434' })
38+
const ollama = new Ollama.Ollama({ host: 'http://127.0.0.1:11434' })
3939
4040
4141

vite.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ export default defineConfig(async () => ({
3434
ignored: ["**/src-tauri/**"],
3535
},
3636
},
37+
3738
}));

0 commit comments

Comments
 (0)