From 103db4216d37e8415c83714f17644e54219e788d Mon Sep 17 00:00:00 2001 From: Anas Khan <83116240+anxkhn@users.noreply.github.com> Date: Mon, 30 Dec 2024 01:03:44 +0530 Subject: [PATCH] docs: add /api/version endpoint documentation (#8082) Co-authored-by: Jeffrey Morgan --- docs/api.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/api.md b/docs/api.md index 41605fc70..50402ecc7 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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" +} +``` + +