push a model

POST {{baseUrl}}/api/push

Upload a model to a model library. Requires registering for ollama.ai and adding a public key first.

Request Body

{"model"=>"mattw/pygmalion:latest"}

RESPONSES

status: OK

"{\"status\":\"retrieving manifest\"}\n{\"status\":\"couldn't retrieve manifest\"}\n{\"error\":\"open /Users/gbadebobello/.ollama/models/manifests/registry.ollama.ai/mattw/pygmalion/latest: no such file or directory\"}\n"