Document tool_call_format API options

#2
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -96,13 +96,15 @@ response = client.chat.completions.create(
96
  temperature=0.6,
97
  top_p=0.95,
98
  max_tokens=32768,
99
- extra_body={"chat_template_kwargs": {"reasoning_effort": "high"}},
100
  )
101
  message = response.choices[0].message
102
  print("Reasoning:", getattr(message, "reasoning_content", None))
103
  print("Answer:", message.content)
104
  ```
105
 
 
 
106
  ### Transformers
107
 
108
  Validated with Transformers 5.15.0, PyTorch 2.13.0, Safetensors 0.8.0.
 
96
  temperature=0.6,
97
  top_p=0.95,
98
  max_tokens=32768,
99
+ extra_body={"chat_template_kwargs": {"reasoning_effort": "high", "tool_call_format": "xml"}},
100
  )
101
  message = response.choices[0].message
102
  print("Reasoning:", getattr(message, "reasoning_content", None))
103
  print("Answer:", message.content)
104
  ```
105
 
106
+ Our model supports multiple tool calls formats, which can be changed with `chat_template_kwargs`. The supported values are `json`, `xml`, and `xml_typed` . The default is `xml`. Keep `--tool-call-parser k2_horizon` enabled to parse the selected format.
107
+
108
  ### Transformers
109
 
110
  Validated with Transformers 5.15.0, PyTorch 2.13.0, Safetensors 0.8.0.