[PR #2017] [MERGED] Fix show parameters #10759

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2017
Author: @pdevine
Created: 1/16/2024
Status: Merged
Merged: 1/16/2024
Merged by: @pdevine

Base: mainHead: showparameters


📝 Commits (3)

  • f57feae simplify the parameter type conversion
  • 02d3c44 add unit test for showing params
  • 5a05900 fix sort order

📊 Changes

2 files changed (+41 additions, -20 deletions)

View changed files

📝 server/routes.go (+3 -19)
📝 server/routes_test.go (+38 -1)

📄 Description

The ShowParameters call was converting some floats into ints. This simplifies the code and adds a unit test.


🔄 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/2017 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 1/16/2024 **Status:** ✅ Merged **Merged:** 1/16/2024 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `showparameters` --- ### 📝 Commits (3) - [`f57feae`](https://github.com/ollama/ollama/commit/f57feaee08a699556cf8d9ea01f34c7144590bb6) simplify the parameter type conversion - [`02d3c44`](https://github.com/ollama/ollama/commit/02d3c44cdcb6587190050336f8acb263c6297587) add unit test for showing params - [`5a05900`](https://github.com/ollama/ollama/commit/5a05900d96e3556a1f33ceb688c930b852c94f00) fix sort order ### 📊 Changes **2 files changed** (+41 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+3 -19) 📝 `server/routes_test.go` (+38 -1) </details> ### 📄 Description The ShowParameters call was converting some floats into ints. This simplifies the code and adds a unit test. --- <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:09:54 -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#10759