[PR #10520] Hide 'tensors' field when verbose=false #23803

Open
opened 2026-04-19 17:13:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10520
Author: @Shashank-Sathiya
Created: 5/1/2025
Status: 🔄 Open

Base: mainHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+18 additions, -9 deletions)

View changed files

📝 server/routes.go (+18 -9)

📄 Description

This PR modifies the /api/show endpoint behavior to omit the tensors field from the response when the verbose flag is set to false. Previously, the tensors data was included regardless of verbosity, resulting in unnecessarily large responses for standard use cases.

Changes Made:

Updated the GetModelInfo function to conditionally populate the Tensors field based on the verbose value in the request.

Ensured existing behavior remains unchanged when verbose is true.


🔄 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/10520 **Author:** [@Shashank-Sathiya](https://github.com/Shashank-Sathiya) **Created:** 5/1/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`33a487c`](https://github.com/ollama/ollama/commit/33a487c1c7e543d3411a467f2d8a08c6e9627f84) Fixed tenser key verbose ### 📊 Changes **1 file changed** (+18 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+18 -9) </details> ### 📄 Description This PR modifies the /api/show endpoint behavior to omit the tensors field from the response when the verbose flag is set to false. Previously, the tensors data was included regardless of verbosity, resulting in unnecessarily large responses for standard use cases. Changes Made: Updated the GetModelInfo function to conditionally populate the Tensors field based on the verbose value in the request. Ensured existing behavior remains unchanged when verbose is true. --- <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-19 17:13:38 -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#23803