Description
The OpenRouter API supports the parallel_tool_calls parameter for chat completions:
parallel_tool_calls (Optional boolean, default: true)
Whether to enable parallel function calling during tool use. If true, the model can call multiple functions simultaneously. If false, functions will be called sequentially. Only applies when tools are provided.
However, the Python SDK's Chat.send() / Chat.send_async() methods do not expose this parameter. Passing it raises:
TypeError: Chat.send() got an unexpected keyword argument 'parallel_tool_calls'
Expected behavior
Chat.send(parallel_tool_calls=False, ...) should forward the parameter to the API request body, matching the behavior of the REST API.
SDK version
openrouter==0.6.0
Description
The OpenRouter API supports the
parallel_tool_callsparameter for chat completions:However, the Python SDK's
Chat.send()/Chat.send_async()methods do not expose this parameter. Passing it raises:Expected behavior
Chat.send(parallel_tool_calls=False, ...)should forward the parameter to the API request body, matching the behavior of the REST API.SDK version
openrouter==0.6.0