ValueError("Failed to parse ledger information after multiple retries.") When using MagenticOne Orchestrator with gpt-4.1-mini #6600
Unanswered
vamsithumma2812
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm facing an issue when I use MagenticOne Orchestrator with gpt-4.1-mini model -
Error
In file ".venv\Lib\site-packages\autogen_agentchat\teams_group_chat_magentic_one_magentic_one_orchestrator.py", line 353
Sometimes the multiagent workflow is working fine without any errors but sometimes throwing this error.
I'm passing this in model_client for MagenticOne Orchestrator and all of my agents-
Is this an issue from autogen magenticone module, am I passing correct configurations? I think I haven't faced this issue when I used 'gpt-4o-mini' model.
Does LLM is generating content like this, and the code is not flexible to parse this kind of json?
This is the code snippet for the file where the error is thrown, I think the line progress_ledger = json.loads(ledger_str) is not capable to handle the json string if we get model output with prefix
json\n{...}\n
Is there any solution for this, help me to solve this error.
Beta Was this translation helpful? Give feedback.
All reactions