[PR #5408] [CLOSED] cmd: create context #74062

Closed
opened 2026-05-05 06:01:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5408
Author: @mxyng
Created: 7/1/2024
Status: Closed

Base: mainHead: mxyng/create-context


📝 Commits (1)

📊 Changes

1 file changed (+70 additions, -57 deletions)

View changed files

📝 cmd/cmd.go (+70 -57)

📄 Description

restrict create file references to a directory context, default the parent directory of the Modelfile but configurable with -C/--context

this allows follow up changes like #4240 without exposing more information than is requested

Note: this is a breaking CLI change since arbitrary file paths will no longer be supported


🔄 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/5408 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/1/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mxyng/create-context` --- ### 📝 Commits (1) - [`3803ecb`](https://github.com/ollama/ollama/commit/3803ecb6a699492ec7b82de8e2714bff8fd65e5f) cmd build context ### 📊 Changes **1 file changed** (+70 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+70 -57) </details> ### 📄 Description restrict create file references to a directory context, default the parent directory of the Modelfile but configurable with `-C/--context ` this allows follow up changes like #4240 without exposing more information than is requested Note: this is a breaking CLI change since arbitrary file paths will no longer be supported --- <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 06:01:43 -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#74062