Skip to content

Parse backtick-enclosed json #6607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

peterychang
Copy link
Collaborator

Why are these changes needed?

Some models enclose json in markdown code blocks

Related issue number

resolves #6599

Checks

Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 82.14286% with 5 lines in your changes missing coverage. Please review.

Project coverage is 79.55%. Comparing base (c683175) to head (89abda1).

Files with missing lines Patch % Lines
.../autogen_ext/models/anthropic/_anthropic_client.py 20.00% 4 Missing ⚠️
...p_chat/_magentic_one/_magentic_one_orchestrator.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6607   +/-   ##
=======================================
  Coverage   79.54%   79.55%           
=======================================
  Files         225      226    +1     
  Lines       16669    16694   +25     
=======================================
+ Hits        13260    13281   +21     
- Misses       3409     3413    +4     
Flag Coverage Δ
unittests 79.55% <82.14%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError("Failed to parse ledger information after multiple retries.") When using MagenticOne Orchestrator with gpt-4.1-mini
1 participant