[GH-ISSUE #10861] ChatHandler to always use m.System #7135

Open
opened 2026-04-12 19:08:39 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @efa2d19 on GitHub (May 26, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10861

Currently ChatHandler only adds system prompt from the model if first message's role isn't system
I think always adding m.system if not blank is better: it will be extracted later to system msg list + last msg at least before ctx length check, it won't be overridden but extended

Originally created by @efa2d19 on GitHub (May 26, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10861 Currently ChatHandler only adds system prompt from the model if first message's role isn't system\ I think always adding m.system if not blank is better: it will be extracted later to system msg list + last msg at least before ctx length check, it won't be overridden but extended
GiteaMirror added the feature request label 2026-04-12 19:08:39 -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#7135