hanseungwook commited on
Commit
01f1e5b
·
verified ·
1 Parent(s): a14e771

Document tool_call_format API options

Browse files

Adds the supported tool-call format values and notes that the k2_horizon parser must remain enabled.

Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -104,13 +104,15 @@ response = client.chat.completions.create(
104
  temperature=0.6,
105
  top_p=0.95,
106
  max_tokens=32768,
107
- extra_body={"chat_template_kwargs": {"reasoning_effort": "high"}},
108
  )
109
  message = response.choices[0].message
110
  print("Reasoning:", getattr(message, "reasoning_content", None))
111
  print("Answer:", message.content)
112
  ```
113
 
 
 
114
  ### Transformers
115
 
116
  Validated with Transformers 5.15.0, PyTorch 2.13.0, Safetensors 0.8.0.
 
104
  temperature=0.6,
105
  top_p=0.95,
106
  max_tokens=32768,
107
+ extra_body={"chat_template_kwargs": {"reasoning_effort": "high", "tool_call_format": "xml"}},
108
  )
109
  message = response.choices[0].message
110
  print("Reasoning:", getattr(message, "reasoning_content", None))
111
  print("Answer:", message.content)
112
  ```
113
 
114
+ 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.
115
+
116
  ### Transformers
117
 
118
  Validated with Transformers 5.15.0, PyTorch 2.13.0, Safetensors 0.8.0.