Skip to content

fix(agents): drop parallel_tool_calls param for custom model providers#2455

Merged
daryllimyt merged 1 commit intomainfrom
fix/llm-proxy-parallel-tool-calls
Apr 2, 2026
Merged

fix(agents): drop parallel_tool_calls param for custom model providers#2455
daryllimyt merged 1 commit intomainfrom
fix/llm-proxy-parallel-tool-calls

Conversation

@jordan-umusu
Copy link
Copy Markdown
Collaborator

@jordan-umusu jordan-umusu commented Apr 1, 2026

Summary by cubic

Remove parallel_tool_calls from custom model provider payloads to stop malformed tool_choice generation by LiteLLM when routing to Bedrock. This aligns with the OpenAI spec and prevents tool-calling errors for non-OpenAI providers.

  • Bug Fixes
    • Drop parallel_tool_calls during custom provider normalization, fixing missing type in downstream tool_choice. OpenAI model payloads are unchanged.

Written for commit a4f2fe3. Summary will update on new commits.

@jordan-umusu jordan-umusu added fix Bug fix agents LLM agents labels Apr 1, 2026
@jordan-umusu jordan-umusu marked this pull request as ready for review April 1, 2026 19:32
@jordan-umusu jordan-umusu temporarily deployed to internal-registry-ci April 1, 2026 19:32 — with GitHub Actions Inactive
@jordan-umusu jordan-umusu temporarily deployed to internal-registry-ci April 1, 2026 19:32 — with GitHub Actions Inactive
@jordan-umusu jordan-umusu requested review from daryllimyt and topher-lo and removed request for topher-lo April 1, 2026 19:33
@zeropath-ai
Copy link
Copy Markdown

zeropath-ai bot commented Apr 1, 2026

No security or compliance issues detected. Reviewed everything up to a4f2fe3.

Security Overview
Detected Code Changes
Change Type Relevant files
Refactor ► provider_openai.py
    Remove parallel_tool_calls from custom provider payloads

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a4f2fe3253

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Contributor

@daryllimyt daryllimyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@daryllimyt daryllimyt merged commit ec2d68e into main Apr 2, 2026
17 checks passed
@daryllimyt daryllimyt deleted the fix/llm-proxy-parallel-tool-calls branch April 2, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents LLM agents fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants