bigmoyan commited on
Commit
94a4053
·
verified ·
1 Parent(s): 975af05

not add functions. in tool id (#15)

Browse files

- remove functions. in tool_id (b079de4ec9e452b60a608da2c92c0e0ae167395f)

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 -%}