fix(core): litellm tool-arg repair + pin cecli Grep hardening#3
fix(core): litellm tool-arg repair + pin cecli Grep hardening#3JessicaMulein wants to merge 1 commit into
Conversation
Import parse_tool_arguments from cecli.helpers.responses (not helpers.py). Pin cecli @ 383b6fd8b — Grep format_output hardening for local-model searches. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Static Code Review 📊 ✅ All quality checks passed! |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review Summary by QodoFix litellm tool-arg repair and pin cecli Grep hardening WalkthroughsDescription• Fix litellm_ollama_patch to import parse_tool_arguments from correct cecli module path • Pin cecli submodule to 383b6fd8b for Grep format_output hardening • Ensures glued local-model tool JSON uses cecli's full repair path Diagramflowchart LR
A["litellm_ollama_patch.py"] -->|"import from correct path"| B["cecli.helpers.responses"]
C["cecli submodule"] -->|"update to 383b6fd8b"| D["Grep format_output hardening"]
B -->|"parse_tool_arguments"| E["Tool JSON repair"]
File Changes1. bright_vision_core/litellm_ollama_patch.py
|
Code Review by Qodo
1. Silent tool-args wipe
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
Summary
litellm_ollama_patchto importparse_tool_argumentsfromcecli.helpers.responsesso glued local-model tool JSON uses cecli's full repair path383b6fd8b(Grepformat_outputhardening for malformedsearches)Depends on cecli: Digital-Defiance/cecli#12
Test plan
pytest tests/core/test_litellm_ollama_patch.py tests/core/test_cecli_tool_json.pysource activate.sh && pip install -e cecli && pip install -e .Note: will cherry-pick to
dev-integrationfor dogfood.Made with Cursor
PR Summary by Typo
Overview
This PR addresses a bug in
litellmtool argument parsing by updating an import path and pins thececlisubmodule to a newer version that includes hardening improvements.Key Changes
parse_tool_argumentsinbright_vision_core/litellm_ollama_patch.pyto reflect its new location within thececlilibrary.ceclisubmodule to a specific commit (383b6fd) for enhanced grep hardening.Work Breakdown
To turn off PR summary, please visit Notification settings.