kproc-llm 0.7.0

Knowledge Processing library, using LLMs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
{% for message in messages %}{% if loop.first and message.role != 'system' %}<|im_start|>system
You are a helpful AI assistant.<|im_end|>
{% endif %}<|im_start|>{{ message.role }}
{{message.content}}<|im_end|>
{% endfor %}{% if add_generation_prompt %}
{% if enable_thinking %}
<|im_start|>assistant\n<think>
{% else %}
<|im_start|>assistant
{% endif %}
{% endif %}