[PR #11] [MERGED] interactive generate #41172

Closed
opened 2026-04-24 21:06:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11
Author: @mxyng
Created: 6/28/2023
Status: Merged
Merged: 6/28/2023
Merged by: @mxyng

Base: mainHead: interactive-generate


📝 Commits (1)

📊 Changes

2 files changed (+32 additions, -4 deletions)

View changed files

📝 ollama/cmd/cli.py (+31 -3)
📝 ollama/engine.py (+1 -1)

📄 Description

generate prompt is now optional. if a prompt is omitted, it will start an interactive session

previous behaviour with prompt

$ ollama generate ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_0.bin 'Hi!'
>>> Hi!

 Hello! How can I help you today?

new behaviour without a prompt. ctrl-c to exit interactive mode

$ ollama generate ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_0.bin
>>> Hi!

 Hello! How can I help you today?

>>> How are you?

 I am just a computer program, so I don't have feelings or emotions like humans do. I exist solely to provide information and assist with tasks to the best of my abilities. Is there anything specific you would like help with today?

>>>

new behaviour with a input file

$ ollama generate orca-mini-3b.ggmlv3.q4_0 <questions.txt
>>> Hi!

 Hello! How can I assist you today?

>>> How are you?

 I'm doing well, thank you for asking. How about you?

>>>

🔄 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/11 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/28/2023 **Status:** ✅ Merged **Merged:** 6/28/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `interactive-generate` --- ### 📝 Commits (1) - [`db55082`](https://github.com/ollama/ollama/commit/db5508209bb7d89c1f68bd4f5ff5e97e2b7810df) interactive generate ### 📊 Changes **2 files changed** (+32 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `ollama/cmd/cli.py` (+31 -3) 📝 `ollama/engine.py` (+1 -1) </details> ### 📄 Description generate prompt is now optional. if a prompt is omitted, it will start an interactive session previous behaviour with prompt ``` $ ollama generate ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_0.bin 'Hi!' >>> Hi! Hello! How can I help you today? ``` new behaviour without a prompt. ctrl-c to exit interactive mode ``` $ ollama generate ~/Downloads/vicuna-7b-v1.3.ggmlv3.q4_0.bin >>> Hi! Hello! How can I help you today? >>> How are you? I am just a computer program, so I don't have feelings or emotions like humans do. I exist solely to provide information and assist with tasks to the best of my abilities. Is there anything specific you would like help with today? >>> ``` new behaviour with a input file ``` $ ollama generate orca-mini-3b.ggmlv3.q4_0 <questions.txt >>> Hi! Hello! How can I assist you today? >>> How are you? I'm doing well, thank you for asking. How about you? >>> ``` --- <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-04-24 21:06:05 -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#41172