diff --git a/chat_templates/google/gemma-3-1b-it.jinja b/chat_templates/google/gemma-3-1b-it.jinja index d4e3fe0..1713892 100644 --- a/chat_templates/google/gemma-3-1b-it.jinja +++ b/chat_templates/google/gemma-3-1b-it.jinja @@ -20,7 +20,7 @@ {%- set role = message['role'] -%} {%- endif -%} {%- if (message['role'] == 'user') -%} - {{ '' + role + '\n' + message['content'] | trim + '\n' }} + {{ '' + role + '\n' + (first_user_prefix if loop.first else "") + message['content'] | trim + '\n' }} {%- elif (message['role'] == 'assistant') -%} {{ '' + role + '\n' }}{% generation %}{{ message['content'] | trim + '\n' }}{% endgeneration %} {%- endif -%}