{% for msg in history %} {# role이 user면 user 클래스를, 아니면 ai 클래스를 부여합니다 #}
{{- msg.content -}}
{% endfor %}