[GH-ISSUE #11066] Chat endpoint should allow for system override #69360

Closed
opened 2026-05-04 17:54:44 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @hellerve on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11066

Let me start by saying it is entirelypossible that I am lacking context (I’ve tried looking through existant issues), but it seems to me that the chat completion endpoint should allow for a system prompt override just like the generation endpoint does.

If this is desired, I’d be happied to draft up a PR for this also—I just wanted to ask whether y’all have a reason for not supporting this that I might not know of before doing a drive-by contribution.

Cheers

Originally created by @hellerve on GitHub (Jun 13, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11066 Let me start by saying it is entirelypossible that I am lacking context (I’ve tried looking through existant issues), but it seems to me that the chat completion endpoint should allow for a system prompt override just like the generation endpoint does. If this is desired, I’d be happied to draft up a PR for this also—I just wanted to ask whether y’all have a reason for not supporting this that I might not know of before doing a drive-by contribution. Cheers
GiteaMirror added the feature request label 2026-05-04 17:54:44 -05:00
Author
Owner

@hellerve commented on GitHub (Jun 13, 2025):

From looking at the code and talking on Discord: the generation endpoint prepends a system message to the (non-user controlled) list of messages when generating. The solution on the chat side is to use a message with system role.

<!-- gh-comment-id:2969863744 --> @hellerve commented on GitHub (Jun 13, 2025): From looking at the code and talking on Discord: the generation endpoint prepends a system message to the (non-user controlled) list of messages when generating. The solution on the chat side is to use a message with `system` role.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69360