[PR #8165] [CLOSED] server: add options to dry run and debug for chat and generate #17922

Closed
opened 2026-04-16 06:19:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/8165
Author: @ParthSareen
Created: 12/18/2024
Status: Closed

Base: mainHead: parth/templating


📝 Commits (5)

  • 1d529d8 Add /template endpoint
  • c9a4614 Warn user on truncation - ollama logs
  • 38cd80d Add dry run option for chat request
  • 3f60fd5 Remove /template API
  • 6556540 User interface prototype

📊 Changes

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

View changed files

📝 api/types.go (+10 -0)
📝 server/prompt.go (+4 -0)
📝 server/routes.go (+38 -0)

📄 Description

  • Doesn't actually load the model
  • No tokenization or context length clipping
  • Barebones implementation of the chatPrompt function

Precursor to enabling tokenization endpoints: https://github.com/ollama/ollama/pull/8106


🔄 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/8165 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 12/18/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `parth/templating` --- ### 📝 Commits (5) - [`1d529d8`](https://github.com/ollama/ollama/commit/1d529d8b7b78ba83337332428f3f438ee887aa29) Add /template endpoint - [`c9a4614`](https://github.com/ollama/ollama/commit/c9a46140e6fd00ab09eb0726169a3747e86441ce) Warn user on truncation - ollama logs - [`38cd80d`](https://github.com/ollama/ollama/commit/38cd80d52c7aefe8562f4bb1d3126ad2904d85c1) Add dry run option for chat request - [`3f60fd5`](https://github.com/ollama/ollama/commit/3f60fd57e3a71c82c531edb4a6fe1699146ad103) Remove /template API - [`6556540`](https://github.com/ollama/ollama/commit/65565406554219bba8c7ed07261125741149aaa8) User interface prototype ### 📊 Changes **3 files changed** (+52 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+10 -0) 📝 `server/prompt.go` (+4 -0) 📝 `server/routes.go` (+38 -0) </details> ### 📄 Description - Doesn't actually load the model - No tokenization or context length clipping - Barebones implementation of the `chatPrompt` function Precursor to enabling tokenization endpoints: https://github.com/ollama/ollama/pull/8106 --- <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-16 06:19:31 -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#17922