[PR #14210] [MERGED] docs: fix incomplete response schemas for /api/ps and /api/tags in openapi.yaml #19841

Closed
opened 2026-04-16 07:18:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14210
Author: @ssam18
Created: 2/11/2026
Status: Merged
Merged: 2/12/2026
Merged by: @BruceMacD

Base: mainHead: fix/openapi-ps-tags-schema-13756


📝 Commits (1)

  • 421fa49 docs: fix openapi schema for /api/ps and /api/tags endpoints

📊 Changes

1 file changed (+15 additions, -1 deletions)

View changed files

📝 docs/openapi.yaml (+15 -1)

📄 Description

Fix for the bug #13756

The OpenAPI spec was missing a few fields that the actual Go structs return. /api/tags was missing model, remote_model, and remote_host in the ModelSummary schema, and /api/ps was missing the name field in the Ps schema. Also updated the response examples to include these fields so they match what the API actually returns.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14210 **Author:** [@ssam18](https://github.com/ssam18) **Created:** 2/11/2026 **Status:** ✅ Merged **Merged:** 2/12/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `fix/openapi-ps-tags-schema-13756` --- ### 📝 Commits (1) - [`421fa49`](https://github.com/ollama/ollama/commit/421fa492ed71ef38ca64fdf8be1ae74b8cadb5de) docs: fix openapi schema for /api/ps and /api/tags endpoints ### 📊 Changes **1 file changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/openapi.yaml` (+15 -1) </details> ### 📄 Description Fix for the bug #13756 The OpenAPI spec was missing a few fields that the actual Go structs return. `/api/tags` was missing `model`, `remote_model`, and `remote_host` in the ModelSummary schema, and `/api/ps` was missing the `name` field in the Ps schema. Also updated the response examples to include these fields so they match what the API actually returns. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 07:18:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#19841