[PR #3947] [MERGED] Add a /clear command #10066

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3947
Author: @brycereitano
Created: 4/26/2024
Status: Merged
Merged: 5/1/2024
Merged by: @pdevine

Base: mainHead: clear-command


📝 Commits (2)

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 cmd/interactive.go (+5 -0)

📄 Description

This has came up a couple of times in the issue history where you would like to clear your chat context. It can be annoying to reload a large model.

This adds a new command /clear in interactive sessions that just wipes the full chat history.

Let me know if there other considerations I should take into account or other names we may want to have for the command.

Fixes #3937


🔄 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/3947 **Author:** [@brycereitano](https://github.com/brycereitano) **Created:** 4/26/2024 **Status:** ✅ Merged **Merged:** 5/1/2024 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `clear-command` --- ### 📝 Commits (2) - [`130396f`](https://github.com/ollama/ollama/commit/130396f220e613218404c5323c16ee055af18ac0) Add a /clear command - [`7fbd63f`](https://github.com/ollama/ollama/commit/7fbd63f33b7f9bdd911c4414d1221a70671a8988) change help messages ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+5 -0) </details> ### 📄 Description This has came up a couple of times in the issue history where you would like to clear your chat context. It can be annoying to reload a large model. This adds a new command `/clear` in interactive sessions that just wipes the full chat history. Let me know if there other considerations I should take into account or other names we may want to have for the command. Fixes #3937 --- <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:20:13 -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#10066