mirror of
https://github.com/ollama/ollama.git
synced 2026-03-27 02:58:43 +07:00
docs: fix openapi schema for /api/ps and /api/tags endpoints (#14210)
This commit is contained in:
@@ -596,6 +596,15 @@ components:
|
|||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: Model name
|
description: Model name
|
||||||
|
model:
|
||||||
|
type: string
|
||||||
|
description: Model name
|
||||||
|
remote_model:
|
||||||
|
type: string
|
||||||
|
description: Name of the upstream model, if the model is remote
|
||||||
|
remote_host:
|
||||||
|
type: string
|
||||||
|
description: URL of the upstream Ollama host, if the model is remote
|
||||||
modified_at:
|
modified_at:
|
||||||
type: string
|
type: string
|
||||||
description: Last modified timestamp in ISO 8601 format
|
description: Last modified timestamp in ISO 8601 format
|
||||||
@@ -636,6 +645,9 @@ components:
|
|||||||
Ps:
|
Ps:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: Name of the running model
|
||||||
model:
|
model:
|
||||||
type: string
|
type: string
|
||||||
description: Name of the running model
|
description: Name of the running model
|
||||||
@@ -1137,6 +1149,7 @@ paths:
|
|||||||
example:
|
example:
|
||||||
models:
|
models:
|
||||||
- name: "gemma3"
|
- name: "gemma3"
|
||||||
|
model: "gemma3"
|
||||||
modified_at: "2025-10-03T23:34:03.409490317-07:00"
|
modified_at: "2025-10-03T23:34:03.409490317-07:00"
|
||||||
size: 3338801804
|
size: 3338801804
|
||||||
digest: "a2af6cc3eb7fa8be8504abaf9b04e88f17a119ec3f04a3addf55f92841195f5a"
|
digest: "a2af6cc3eb7fa8be8504abaf9b04e88f17a119ec3f04a3addf55f92841195f5a"
|
||||||
@@ -1168,7 +1181,8 @@ paths:
|
|||||||
$ref: "#/components/schemas/PsResponse"
|
$ref: "#/components/schemas/PsResponse"
|
||||||
example:
|
example:
|
||||||
models:
|
models:
|
||||||
- model: "gemma3"
|
- name: "gemma3"
|
||||||
|
model: "gemma3"
|
||||||
size: 6591830464
|
size: 6591830464
|
||||||
digest: "a2af6cc3eb7fa8be8504abaf9b04e88f17a119ec3f04a3addf55f92841195f5a"
|
digest: "a2af6cc3eb7fa8be8504abaf9b04e88f17a119ec3f04a3addf55f92841195f5a"
|
||||||
details:
|
details:
|
||||||
|
|||||||
Reference in New Issue
Block a user