初始化项目,由ModelHub XC社区提供模型
Model: Pageshift-Entertainment/pagestorm-research-preview-24b-first-chapter-only Source: Original Platform
This commit is contained in:
23
chat_template.jinja
Normal file
23
chat_template.jinja
Normal file
@@ -0,0 +1,23 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user