Version | |
---|---|
Angular CLI | 19.1.2006 |
Node | 22.13.1 |
Package Manager | npm 10.9.2 |
nvm | 0.40.1 |
ollama | 0.5.7 |
./run.sh
#!/bin/bash cd /home/serpro/estudos/chat-ollama-angular/ json-server --watch src/db/db.json
Obs: ./run.sh
it already runs the angular project and json server.
Install ollama and the models.
Configure the templates path (Windows):
setx OLLAMA_MODELS "E:\programas\ia\ollama"
Configure ollama on local network (Windows):
setx OLLAMA_HOST "0.0.0.0"
On Linux change the .bashrc
or .zshrc
file, etc.
To install, for example, the deepseek-r1:7b template, run the following command:
ollama run deepseek-r1:7b
Example of a query via curl
:
curl http://localhost:11434/api/generate -d '{ "model": "deepseek-r1:7b", "prompt": "What color is the sky at different times of the day? Respond using JSON", "format": "json", "stream": false }'
npm i ollama npm i showdown --save npm i --save-dev @types/showdown npm i -g json-server npm i ngx-markdown npm i prismjs npm i clipboard@^2.0.11 --save
There are no datasets linked
There are no datasets linked