[PR #2015] [CLOSED] fix: differentiate floats/ints properly (resolve: #2011) #42005

Closed
opened 2026-04-24 21:47:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2015
Author: @Robitx
Created: 1/16/2024
Status: Closed

Base: mainHead: fix_show_parameters


📝 Commits (2)

  • 9afa53c fix: differentiate floats/ints properly
  • 4163b65 chore: incr valid digits

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 server/routes.go (+10 -2)

📄 Description

The parsing might deserve bigger refactor, but for now - all numbers are falling into the case float64: branch so I put a differentiation in there.

#2011


🔄 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/2015 **Author:** [@Robitx](https://github.com/Robitx) **Created:** 1/16/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix_show_parameters` --- ### 📝 Commits (2) - [`9afa53c`](https://github.com/ollama/ollama/commit/9afa53c4431c3f0fca6a366b6e909953c9fa0110) fix: differentiate floats/ints properly - [`4163b65`](https://github.com/ollama/ollama/commit/4163b654ab4cca3997699a9dc78580ab3542e62a) chore: incr valid digits ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+10 -2) </details> ### 📄 Description The parsing might deserve bigger refactor, but for now - all numbers are falling into the `case float64`: branch so I put a differentiation in there. #2011 --- <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-24 21:47:53 -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#42005