feat: Override system prompt from non-interactive CLI
- Closes #1415
Previously, the only way to set the system prompt for non-interactive use was to import a new Modelfile.
This PR makes Ollama much easier to script non-interatively:
ollama run llama2 --system "Translate into French" "This is really useful!"
Think you should consider doing arrangements for the other parameters as well. Would be pretty nice.
Just had an additional idea. The system prompt and/or other modelfile parameters could be in the file which could be passed in at command.
file_a:
/set parameter system "This is a system prompt."
/set parameter num_ctx 8192
...
ollama run llama2 -f ./file_a "This is really useful!"
If this exists already with the main branch, my apologies for missing it.
Why hasn't this been merged yet?
Just had an additional idea. The system prompt and/or other modelfile parameters could be in the file which could be passed in at command.
file_a:
/set parameter system "This is a system prompt." /set parameter num_ctx 8192 ...ollama run llama2 -f ./file_a "This is really useful!"If this exists already with the main branch, my apologies for missing it.
Please add this @kaizau also when you rebase.