Unverified Commit 103db421 authored by Anas Khan's avatar Anas Khan Committed by GitHub
Browse files

docs: add /api/version endpoint documentation (#8082)


Co-authored-by: default avatarJeffrey Morgan <jmorganca@gmail.com>
parent 6daddcde
......@@ -13,6 +13,7 @@
- [Push a Model](#push-a-model)
- [Generate Embeddings](#generate-embeddings)
- [List Running Models](#list-running-models)
- [Version](#version)
## Conventions
......@@ -1526,3 +1527,29 @@ curl http://localhost:11434/api/embeddings -d '{
]
}
```
## Version
```shell
GET /api/version
```
Retrieve the Ollama version
### Examples
#### Request
```shell
curl http://localhost:11434/api/version
```
#### Response
```json
{
"version": "0.5.1"
}
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment