Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Indeed! After pulling a model with "ollama pull codellama" you can access it via the REST API:

  curl -X POST http://localhost:11434/api/generate -d '{                        
    "model": "codellama",
    "prompt":"write a python script to add two numbers"
  }'


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: