Files
pagestorm-research-preview-…/chat_template.jinja

23 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

{% for message in messages %}{% set role = message['role'] %}{% set content = message['content'] | default('', true) %}{% if role == 'prompt' %}<|start_header_id|>prompt<|stop_header_id|>
{% elif role == 'book_preview' %}<|start_header_id|>book_preview<|stop_header_id|>
{% elif role == 'book_plan' %}<|start_header_id|>book_plan<|stop_header_id|>
{% elif role == 'first_chapter_plan' %}<|start_header_id|>first_chapter_plan<|stop_header_id|>
{% elif role == 'first_chapter_scene_breakdown' %}<|start_header_id|>first_chapter_scene_breakdown<|stop_header_id|>
{% elif role == 'first_chapter_text' %}<|start_header_id|>first_chapter_text<|stop_header_id|>
{% elif role == 'full_book_chapters_plan' %}<|start_header_id|>full_book_chapters_plan<|stop_header_id|>
{% elif role == 'book_characters_list' %}<|start_header_id|>book_characters_list<|stop_header_id|>
{% elif role == 'scene_breakdown' %}<|start_header_id|>scene_breakdown<|stop_header_id|>
{% elif role == 'chapter_text' %}<|start_header_id|>chapter_text<|stop_header_id|>
{% else %}<|start_header_id|>{{ role }}<|stop_header_id|>
{% endif %}{{ content }}{% if not loop.last or content %}<|eot_id|>{% endif %}{% endfor %}