fix(openai): exclude empty tools list from API payload
by saakshigupta2002
·
Feb 06, 2026 at 19:27 UTC
·
scan-d51262fdb77cb721
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Low (20%)
Exclude empty tools list from API payload to prevent validation errors.
base.py line 1422 filters empty tools.
base.py line 3807 sets tools conditionally.
test_base.py adds test_empty_tools_excluded_from_payload.
Has 1 merged PRs to this repo. maintains 79 public repositories. unfamiliar with 2 files.
Review 1 high-priority file(s)
libs/partners/openai/tests/unit_tests/chat_models/test_base.py
+99
99 lines changed; Source code
libs/partners/openai/langchain_openai/chat_models/base.py
+7
Source code
19
minutes to review
medium
effort level
none
staleness risk
Standard review process
Some concerns to address before approval
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.