AIChart demo don't work with latest OpenAI gpt-5 and Claude claude-opus-4-1-20250805. It works nicely with gpt-4o and claude-sonnet-4-20250514
Also, the request payload generated for gpt-5 is:
{
"model": "gpt-5",
"input": [
{"role":"user","content":"Can you make a bar chart of the population of the 10 biggest countries in Europe"}
],
"tools": [
{ "type": "function", "name": "clearseries", "description": "Clear the series on the chart" },
{ "type": "function", "name": "addbarseries", "description": "Add a bar series to the chart" },
{ "type": "function", "name": "addpieseries", "description": "add a pie series to the chart" },
{ "type": "function", "name": "addpoint", "description": "add a point to a series in the chart", "parameters": { ... } }
],
"max_output_tokens": null
}
ChatGPT suggests to add a new field parallel_tool_calls to the payload - is it possible?
{
"model": "gpt-5",
"input": [
{"role":"user","content":"Can you make a bar chart of the population of the 10 biggest countries in Europe"}
],
"tools": [
{ "type": "function", "name": "clearseries", "description": "Clear the series on the chart" },
{ "type": "function", "name": "addbarseries", "description": "Add a bar series to the chart" },
{ "type": "function", "name": "addpieseries", "description": "add a pie series to the chart" },
{ "type": "function", "name": "addpoint", "description": "add a point to a series in the chart", "parameters": { ... } }
],
"parallel_tool_calls": true,
"max_output_tokens": null
}