Isn't ollama terminal only? For code, that wouldn't be good.
[1] https://github.com/jmorganca/ollama/blob/main/docs/api.md
curl -X POST http://localhost:11434/api/generate -d '{
"model": "codellama",
"prompt":"write a python script to add two numbers"
}'