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
e184c1d0
Commit
e184c1d0
authored
Aug 08, 2023
by
Jeffrey Morgan
Browse files
Link to `api.md` in `README.md`
parent
371d4e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
README.md
README.md
+6
-11
No files found.
README.md
View file @
e184c1d0
...
@@ -134,20 +134,15 @@ Finally, run a model!
...
@@ -134,20 +134,15 @@ Finally, run a model!
## REST API
## REST API
### `POST /api/generate`
> See the [API documentation](./docs/api.md) for all endpoints.
G
enerate text from a model
.
Ollama has an API for running and managing models. For example to g
enerate text from a model
:
```
```
curl -X POST http://localhost:11434/api/generate -d '{"model": "llama2", "prompt":"Why is the sky blue?"}'
curl -X POST http://localhost:11434/api/generate -d '{
```
"model": "llama2",
"prompt":"Why is the sky blue?"
### `POST /api/create`
}'
Create a model from a
`Modelfile`
.
```
curl -X POST http://localhost:11434/api/create -d '{"name": "my-model", "path": "/path/to/modelfile"}'
```
```
## Tools using Ollama
## Tools using Ollama
...
...
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