PyxiLabs commited on
Commit
8e4ac7e
·
verified ·
1 Parent(s): 323f9a7

Update ollama.js

Browse files
Files changed (1) hide show
  1. ollama.js +9 -6
ollama.js CHANGED
@@ -1,8 +1,11 @@
1
- import {setup, startTunnel} from 'cloudflared-tunnel'
2
 
3
- await setup() // setup the project | you need to do this only once
 
 
 
 
 
 
4
 
5
- await startTunnel({
6
- host: 'http://localhost', // required
7
- port: 3000, // required
8
- }) // pass in the host and port of the server you want to tunnel
 
1
+ import { setup, startTunnel } from 'cloudflared-tunnel';
2
 
3
+ async function main() {
4
+ await setup();
5
+ await startTunnel({
6
+ host: 'http://localhost',
7
+ port: 11434 // Direct tunnel to Ollama's native port
8
+ });
9
+ }
10
 
11
+ main().catch(console.error);