Browse Source

update api documentation

Jeffrey Morgan 1 year ago
parent
commit
9f528c12d7
1 changed files with 10 additions and 4 deletions
  1. 10 4
      README.md

+ 10 - 4
README.md

@@ -92,12 +92,18 @@ Finally, run a model!
 
 ## API Reference
 
-### `POST /completion`
+### `POST /api/pull`
+
+Download a model
+
+```
+curl -X POST http://localhost:11343/api/pull -d '{"model": "orca"}'
+```
+
+### `POST /api/generate`
 
 Complete a prompt
 
 ```
-curl --unix-socket ~/.ollama/ollama.sock http://localhost/api/generate \
- -X POST \
- -d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
+curl -X POST http://localhost:11434/api/generate -d '{"model": "orca", "prompt": "hello!", "stream": true}'
 ```