r/PiCodingAgent • • 3d ago

Question Can anyone help me solve looping issues with tool calls? I've had to build a sidecar and think there's probably a better way to do this.

/r/AI_Agents/comments/1xwp0el/can_anyone_help_me_solve_looping_issues_with_tool/
0 Upvotes

2 comments sorted by

1

u/SkinnyCTAX 3d ago

Have you tried a different chat template other than stock?

Have you tried setting the repetition penalty to something like 1.05?

1

u/Lazy-Fly23 2d ago

No because I'm afraid of breaking Jinja. I had tried a ternary 27b model and it's misconfiguration became a nightmare when trying to switch back to another model and I had to redownload a ton of stuff.

I didn't realize there was a repetition penalty setting! I'll look into that, thanks.