[PR #2700] [CLOSED] Add clear history cli cmd #9697

Closed
opened 2025-11-12 15:12:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2700
Author: @halfnibble
Created: 2/23/2024
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 008cb62 Add clear history cli cmd

📊 Changes

2 files changed (+31 additions, -2 deletions)

View changed files

📝 cmd/cmd.go (+30 -0)
📝 go.mod (+1 -2)

📄 Description

After performing content safety testing on various models, I realized it would be nice to clear the history.

Not sure if this warrants an api handler func like the other handlers?

Also, I thought about abstracting the history path code.


🔄 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/2700 **Author:** [@halfnibble](https://github.com/halfnibble) **Created:** 2/23/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`008cb62`](https://github.com/ollama/ollama/commit/008cb62e160b5069684ea3a2091a6eadc7b9701d) Add clear history cli cmd ### 📊 Changes **2 files changed** (+31 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+30 -0) 📝 `go.mod` (+1 -2) </details> ### 📄 Description After performing content safety testing on various models, I realized it would be nice to clear the history. Not sure if this warrants an api handler func like the other handlers? Also, I thought about abstracting the history path code. --- <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 2025-11-12 15:12:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#9697