[PR #11571] feat(create): accept stdin as --file value #13583

Open
opened 2026-04-13 00:30:38 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11571

State: open
Merged: No


this change modifies ollama create -f to accept - which reads from stdin. this allows users to do things like this

cat <<EOF | ollama create -f- name
FROM model
EOF

this also fixes a bug where FROM /path/to/folder may error when any portion of the path specified is a symlink, not just the individual files inside the directory

**Original Pull Request:** https://github.com/ollama/ollama/pull/11571 **State:** open **Merged:** No --- this change modifies `ollama create -f` to accept `-` which reads from `stdin`. this allows users to do things like this ```console cat <<EOF | ollama create -f- name FROM model EOF ``` this also fixes a bug where `FROM /path/to/folder` may error when any portion of the path specified is a symlink, not just the individual files inside the directory
GiteaMirror added the pull-request label 2026-04-13 00:30:38 -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#13583