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
91cd5401
Commit
91cd5401
authored
Jul 21, 2023
by
Jeffrey Morgan
Browse files
add basic REST api documentation
parent
e7a393de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
README.md
README.md
+10
-0
No files found.
README.md
View file @
91cd5401
...
@@ -125,3 +125,13 @@ Finally, run a model!
...
@@ -125,3 +125,13 @@ Finally, run a model!
```
```
./ollama run llama2
./ollama run llama2
```
```
## REST API
### `POST /api/generate`
Generate text from a model.
```
curl -X POST http://localhost:11434/api/generate -d '{"model": "llama2", "prompt":"Why is the sky blue?"}'
```
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