[PR #11396] [CLOSED] serve: handle user parameters when there are no model parameters #44776

Closed
opened 2026-04-25 00:26:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11396
Author: @rick-github
Created: 7/12/2025
Status: Closed

Base: mainHead: show


📝 Commits (1)

  • 47914ca Handle the case of user defined parameters when there are no model defined parameters.

📊 Changes

2 files changed (+10 additions, -7 deletions)

View changed files

📝 cmd/interactive.go (+7 -7)
📝 server/routes.go (+3 -0)

📄 Description

If a model has no PARAMETER lines in the Modelfile and the user sets parameters, /show parameters in the CLI returns an error due to a nil map.

Fixes: #11395


🔄 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/11396 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 7/12/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `show` --- ### 📝 Commits (1) - [`47914ca`](https://github.com/ollama/ollama/commit/47914ca15013e4bb9db58ea859292f8ed94d765a) Handle the case of user defined parameters when there are no model defined parameters. ### 📊 Changes **2 files changed** (+10 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+7 -7) 📝 `server/routes.go` (+3 -0) </details> ### 📄 Description If a model has no PARAMETER lines in the Modelfile and the user sets parameters, `/show parameters` in the CLI returns an error due to a nil map. Fixes: #11395 --- <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-25 00:26:47 -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#44776