ChatHandler to always use m.System #7143

Open
opened 2025-11-12 13:57:43 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @efa2d19 on GitHub (May 26, 2025).

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). 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 2025-11-12 13:57:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#7143
No description provided.