[PR #11875] [MERGED] server: add debug option for printing out prompt instead of calling model #24183

Closed
opened 2026-04-19 17:26:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11875
Author: @drifkin
Created: 8/12/2025
Status: Merged
Merged: 8/18/2025
Merged by: @drifkin

Base: mainHead: drifkin/print-template


📝 Commits (1)

  • 8de1da4 server: add debug option for printing out prompt instead of calling model

📊 Changes

3 files changed (+460 additions, -0 deletions)

View changed files

📝 api/types.go (+21 -0)
📝 server/routes.go (+26 -0)
server/routes_debug_test.go (+413 -0)

📄 Description

subject to change in the future


🔄 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/11875 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 8/12/2025 **Status:** ✅ Merged **Merged:** 8/18/2025 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/print-template` --- ### 📝 Commits (1) - [`8de1da4`](https://github.com/ollama/ollama/commit/8de1da4767d2e580977888a8f189b29bd81e1e51) server: add debug option for printing out prompt instead of calling model ### 📊 Changes **3 files changed** (+460 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+21 -0) 📝 `server/routes.go` (+26 -0) ➕ `server/routes_debug_test.go` (+413 -0) </details> ### 📄 Description subject to change in the future --- <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:26:00 -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#24183