[PR #563] [CLOSED] Context saving/loading #72517

Closed
opened 2026-05-05 04:03:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/563
Author: @voodooattack
Created: 9/21/2023
Status: Closed

Base: mainHead: main


📝 Commits (3)

  • 2d5f513 context saving/loading
  • f6ce879 Merge remote-tracking branch 'origin/main'
  • 98e9db4 Merge remote-tracking branch 'upstream/main'

📊 Changes

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

View changed files

📝 cmd/cmd.go (+89 -0)

📄 Description

This adds support for saving a conversation/session and resuming it later. The context is (de)serialised as a plain JSON array to/from the specified file.

This adds the following commands:

/context save <filename>
/context load <filename>

🔄 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/563 **Author:** [@voodooattack](https://github.com/voodooattack) **Created:** 9/21/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`2d5f513`](https://github.com/ollama/ollama/commit/2d5f513dfdf1903a5dd2fcbc3a555c6e31e427db) context saving/loading - [`f6ce879`](https://github.com/ollama/ollama/commit/f6ce8792534cf44fa67b573924ba6903ba7a4c5f) Merge remote-tracking branch 'origin/main' - [`98e9db4`](https://github.com/ollama/ollama/commit/98e9db4422f18edbbc93bd99052da7d8a4492916) Merge remote-tracking branch 'upstream/main' ### 📊 Changes **1 file changed** (+89 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+89 -0) </details> ### 📄 Description This adds support for saving a conversation/session and resuming it later. The context is (de)serialised as a plain JSON array to/from the specified file. This adds the following commands: ``` /context save <filename> /context load <filename> ``` --- <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-05-05 04:03:56 -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#72517