Zack Saadioui
8/27/2024
1
2
bash
curl -fsSL https://ollama.com/install.sh | sh
1
2
bash
ollama pull gemma
1
2
bash
npm --save genkitx-ollama
1
http://127.0.0.1:11434
1
2
3
4
5
6
7
8
9
10
11
12
13
javascript
import { ollama } from 'genkitx-ollama';
export default configureGenkit({
plugins: [
ollama({
models: [{
name: 'gemma',
type: 'generate',
},],
serverAddress: 'http://127.0.0.1:11434',
}),
],
});
1
users
1
messages
1
events
1
2
3
4
5
6
7
javascript
const response = await fetch(`https://firestore.googleapis.com/v1/projects/YOUR_PROJECT_ID/databases/(default)/documents/your_collection`, {
method: 'GET',
headers: {'Authorization': `Bearer ${YOUR_FIREBASE_ID_TOKEN}`},
});
const data = await response.json();
console.log(data);
Copyright © Arsturn 2024