[PR #4841] [CLOSED] Remove False Time Fields #11597

Closed
opened 2026-04-12 23:33:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4841
Author: @royjhan
Created: 6/5/2024
Status: Closed

Base: mainHead: royh-nil-dates


📝 Commits (2)

📊 Changes

7 files changed (+83 additions, -7 deletions)

View changed files

📝 api/types.go (+2 -2)
📝 cmd/cmd.go (+2 -2)
📝 docs/api.md (+46 -0)
new.txt (+8 -0)
response.txt (+18 -0)
📝 server/routes.go (+5 -3)
📝 server/routes_test.go (+2 -0)

📄 Description

/api/tags was returning "0001-01-01T00:00:00Z" for 'expires_at'
/api/ps was returning "0001-01-01T00:00:00Z" for 'modified_at'

Removes these fields from the respective endpoints

Added assertion in test case, and tested locally both with curl and CLI


🔄 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/4841 **Author:** [@royjhan](https://github.com/royjhan) **Created:** 6/5/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `royh-nil-dates` --- ### 📝 Commits (2) - [`cd76782`](https://github.com/ollama/ollama/commit/cd767824c7a70d73b6c40cac5bf0bd57f987784c) API PS Documentation - [`4903b82`](https://github.com/ollama/ollama/commit/4903b824b58e09caf891c29a1156c21fc2cc3826) Remove false time fields ### 📊 Changes **7 files changed** (+83 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+2 -2) 📝 `cmd/cmd.go` (+2 -2) 📝 `docs/api.md` (+46 -0) ➕ `new.txt` (+8 -0) ➕ `response.txt` (+18 -0) 📝 `server/routes.go` (+5 -3) 📝 `server/routes_test.go` (+2 -0) </details> ### 📄 Description /api/tags was returning "0001-01-01T00:00:00Z" for 'expires_at' /api/ps was returning "0001-01-01T00:00:00Z" for 'modified_at' Removes these fields from the respective endpoints Added assertion in test case, and tested locally both with curl and CLI --- <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-12 23:33:08 -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#11597