{ "add_prefix_space": false, "added_tokens_decoder": { "151643": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151644": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151645": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>" ], "bos_token": null, "chat_template": "{% if messages[0]['role'] == 'system' %}<|im_start|>system\n{% if builtin_tools is defined or tools is not none %}Environment: ipython\n{% endif %}{% if builtin_tools is defined %}Tools: {{ builtin_tools | reject('equalto', 'code_interpreter') | join(\", \") }}\n{% endif %}Cutting Knowledge Date: December 2023\nToday Date: {{ date_string | default(\"26 Jul 2024\") }}\n\n{% if tools is not none and not tools_in_user_message %}You have access to the following functions. To call a function, please respond with JSON for a function call.\nRespond in the format {\"name\": function name, \"parameters\": dictionary of argument name and its value}.\nDo not use variables.\n\n{% for t in tools %}{{ t | tojson(indent=4) }}\n\n{% endfor %}{% endif %}{{ messages[0]['content']|trim }}<|im_end|>\n\n{% set messages = messages[1:] %}{% endif %}{% for message in messages %}{% if message.role == 'user' or message.role == 'assistant' %}<|im_start|>{{ message['role'] }}\n{{ message['content'] | trim }}<|im_end|>\n\n{% elif 'tool_calls' in message %}<|im_start|>assistant\n{% set tool_call = message.tool_calls[0].function %}{% if builtin_tools is defined and tool_call.name in builtin_tools %}<|python_tag|>{{ tool_call.name }}.call({% for arg_name, arg_val in tool_call.arguments | items %}{{ arg_name }}=\"{{ arg_val }}\"{% if not loop.last %}, {% endif %}{% endfor %}){% else %}{\"name\": \"{{ tool_call.name }}\", \"parameters\": {{ tool_call.arguments | tojson }}}{% endif %}<|im_end|>\n\n{% elif message.role == \"tool\" or message.role == \"ipython\" %}<|im_start|>ipython\n{% if message.content is mapping or message.content is iterable %}{{ message.content | tojson }}{% else %}{{ message.content }}{% endif %}<|im_end|>\n\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "model_max_length": 32768, "pad_token": "<|endoftext|>", "padding_side": "left", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null }