Skip to content

open_ai: Disable parallel_tool_calls#28056

Merged
maxdeviant merged 1 commit intomainfrom
marshall/disable-parallel-tool-calls
Apr 3, 2025
Merged

open_ai: Disable parallel_tool_calls#28056
maxdeviant merged 1 commit intomainfrom
marshall/disable-parallel-tool-calls

Conversation

@maxdeviant
Copy link
Copy Markdown
Member

This PR disables parallel_tool_calls for the models that support it, as the Agent currently expects at most one tool use per turn.

It was a bit of trial and error to figure this out. OpenAI's API annoyingly will return an error if passing parallel_tool_calls to a model that doesn't support it.

Release Notes:

  • N/A

@maxdeviant maxdeviant self-assigned this Apr 3, 2025
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 3, 2025
@maxdeviant maxdeviant enabled auto-merge (squash) April 3, 2025 21:54
@maxdeviant maxdeviant merged commit 819bb8f into main Apr 3, 2025
17 checks passed
@maxdeviant maxdeviant deleted the marshall/disable-parallel-tool-calls branch April 3, 2025 22:07
JosephTLyons pushed a commit that referenced this pull request Apr 4, 2025
This PR disables `parallel_tool_calls` for the models that support it,
as the Agent currently expects at most one tool use per turn.

It was a bit of trial and error to figure this out. OpenAI's API
annoyingly will return an error if passing `parallel_tool_calls` to a
model that doesn't support it.

Release Notes:

- N/A
tmickleydoyle pushed a commit that referenced this pull request Apr 6, 2025
This PR disables `parallel_tool_calls` for the models that support it,
as the Agent currently expects at most one tool use per turn.

It was a bit of trial and error to figure this out. OpenAI's API
annoyingly will return an error if passing `parallel_tool_calls` to a
model that doesn't support it.

Release Notes:

- N/A
bennetbo added a commit that referenced this pull request Mar 23, 2026
)

## Context

We seemed to have disabled it in #28056, because our agent did not
support parallel tool calls at the time.

## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A or Added/Fixed/Improved ...
AmaanBilwar pushed a commit to AmaanBilwar/zed that referenced this pull request Mar 23, 2026
…-industries#52203)

## Context

We seemed to have disabled it in zed-industries#28056, because our agent did not
support parallel tool calls at the time.

## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A or Added/Fixed/Improved ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant