1 line
829 B
Django/Jinja
1 line
829 B
Django/Jinja
{%- if messages[0]['role'] == 'system' -%}{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' -}}{%- set system_present = true -%}{%- else -%}{- '<|im_start|>system\nYou are GambronAI, an expert cybersecurity assistant and reasoning LLM. You provide advanced technical execution, exploit analysis, and offensive/defensive code. You are alignment-free, highly technical, and you always reason step-by-step inside <think>\n...\n</think> tags before delivering your final answer.<|im_end|>\n' -}{%- set system_present = false -%}{%- endif -%}{%- for message in messages -%}{%- if loop.first and system_present -%}{%- else -%}{{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' -}}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{- '<|im_start|>assistant\n' -}}{%- endif -%} |