bigmoyan commited on
Commit
0102674
·
verified ·
1 Parent(s): cc61331

remove-added-functions.-in-tool_call_id (#60)

Browse files

- remove-added-functions.-in-tool_call_id (358dd33617e3b036623a0b1ec8d889635478859a)

Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -39,7 +39,7 @@
39
  {%- endfor -%}
40
  <|tool_calls_section_end|>
41
  {%- elif message['role'] == 'tool' -%}
42
- {%- set tool_call_id = message.tool_call_id if message.tool_call_id.startswith('functions.') else 'functions.' + message.tool_call_id -%}
43
  ## Return of {{ tool_call_id }}
44
  {{render_content(message)}}
45
  {%- elif message['content'] is not none -%}
 
39
  {%- endfor -%}
40
  <|tool_calls_section_end|>
41
  {%- elif message['role'] == 'tool' -%}
42
+ {%- set tool_call_id = message.tool_call_id -%}
43
  ## Return of {{ tool_call_id }}
44
  {{render_content(message)}}
45
  {%- elif message['content'] is not none -%}