[GH-ISSUE #10662] Elaborate on Modelfile format for MESSAGE command #69069

Closed
opened 2026-05-04 17:05:22 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @NubeBuster on GitHub (May 11, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10662

docs/modelfile.mddocs/modelfile.md

It is not clear what the format should be for multi-line messages. I've tried to find examples online but I can't find any.

Is it like

MESSAGE user """
Is Toronto in Canada?

Please explain why or why not.
"""

or

MESSAGE """user
Is Toronto in Canada?

Please explain why or why not.
"""

or

MESSAGE """
user
Is Toronto in Canada?

Please explain why or why not.
"""
Originally created by @NubeBuster on GitHub (May 11, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10662 [docs/modelfile.mddocs/modelfile.md](https://github.com/ollama/ollama/blob/main/docs/modelfile.md#example-conversation) It is not clear what the format should be for multi-line messages. I've tried to find examples online but I can't find any. Is it like ``` MESSAGE user """ Is Toronto in Canada? Please explain why or why not. """ ``` or ``` MESSAGE """user Is Toronto in Canada? Please explain why or why not. """ ``` or ``` MESSAGE """ user Is Toronto in Canada? Please explain why or why not. """ ```
GiteaMirror added the feature request label 2026-05-04 17:05:22 -05:00
Author
Owner

@rick-github commented on GitHub (May 11, 2025):

MESSAGE <role> <message>
MESSAGE user """
Is Toronto in Canada?

Please explain why or why not.
"""
<!-- gh-comment-id:2869967495 --> @rick-github commented on GitHub (May 11, 2025): ``` MESSAGE <role> <message> ``` ``` MESSAGE user """ Is Toronto in Canada? Please explain why or why not. """ ```
Author
Owner

@NubeBuster commented on GitHub (May 13, 2025):

#10697

<!-- gh-comment-id:2877940015 --> @NubeBuster commented on GitHub (May 13, 2025): #10697
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69069