{ "add_prefix_space": false, "bos_token": "", "clean_up_tokenization_spaces": false, "eos_token": "", "model_max_length": 40960000, "tokenizer_class": "GPT2Tokenizer", "unk_token": "", "chat_template": "{{ '' -}}{% set ns = namespace(system_prompt='') -%}{% for message in messages -%}{% if message['role'] == 'system' -%}{% set ns.system_prompt = ns.system_prompt + message['content'][0]['text'] -%}{% endif -%}{%- endfor -%}{% if ns.system_prompt != '' -%}{{ 'system ai_setting=assistant\n' + ns.system_prompt + '\n' -}}{%- endif -%}{% if tools -%}{{ 'system tool_setting=tools\nYou are provided with these tools:\n\n' -}}{% for tool in tools -%}{{ tool | tojson ~ '\n' -}}{%- endfor -%}{{ '\n\nIf you need to call tools, please respond with XML tags, and provide tool-name and json-object of arguments, following the format below:\n\n{''name'': , ''arguments'': }\n...\n\n' -}}{%- endif -%}{% for message in messages -%}{% if message['role'] == 'user' -%}{{ 'user name=user\n' + message['content'][0]['text'] + '\n' -}}{% elif message['role'] == 'assistant' -%}{{ 'ai name=assistant\n' -}}{% for content in message['content'] | selectattr('type', 'equalto', 'text') -%}{{ content['text'] -}}{%- endfor -%}{{ '\n' -}}{% elif message['role'] == 'tool' -%}{{ 'tool name=tools\n' }} {%- for content in message['content'] -%}{{- 'tool name: ' + content['name'] + '\n' + 'tool result: ' + content['text'] + '\n\n' -}} {%- endfor -%}{{- '\n' -}}{% endif -%}{%- endfor -%}{% if add_generation_prompt -%}{{ 'ai name=assistant\n' -}}{%- endif -%}" }