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
orangecat
ollama
Commits
103db421
Unverified
Commit
103db421
authored
Dec 30, 2024
by
Anas Khan
Committed by
GitHub
Dec 29, 2024
Browse files
docs: add /api/version endpoint documentation (#8082)
Co-authored-by:
Jeffrey Morgan
<
jmorganca@gmail.com
>
parent
6daddcde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
docs/api.md
docs/api.md
+27
-0
No files found.
docs/api.md
View file @
103db421
...
...
@@ -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"
}
```
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