Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
9f528c12
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "2d120f8b1873fe84a6861dfe5656539fa1950a8e"
Commit
9f528c12
authored
Jul 06, 2023
by
Jeffrey Morgan
Browse files
update api documentation
parent
fdb93ef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
README.md
README.md
+10
-4
No files found.
README.md
View file @
9f528c12
...
@@ -92,12 +92,18 @@ Finally, run a model!
...
@@ -92,12 +92,18 @@ Finally, run a model!
## API Reference
## 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
Complete a prompt
```
```
curl --unix-socket ~/.ollama/ollama.sock http://localhost/api/generate \
curl -X POST http://localhost:11434/api/generate -d '{"model": "orca", "prompt": "hello!", "stream": true}'
-X POST \
-d '{"model": "/path/to/model", "prompt": "Once upon a time", "stream": true}'
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment