Skip to content

Missing parallel_tool_calls parameter in Chat.send() #52

@mdrxy

Description

@mdrxy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions