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

Open
opened 2026-04-13 00:22:22 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10520

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/ollama/ollama/pull/10520 **State:** open **Merged:** No --- 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.
GiteaMirror added the pull-request label 2026-04-13 00:22:22 -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#13263