---
type: email
from: Zihao FU <notifications@github.com>
subject: Re: [openai/openai-agents-python] Agent keep retrying until hit

 max_retires on function calling (Issue #981)
received: 2026-03-06 07:36:59
date_header: Wed, 17 Sep 2025 04:08:21 -0700
priority: normal
status: awaiting_approval
uid: 30671
---

## Email Content

**From:** Zihao FU <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Agent keep retrying until hit

 max_retires on function calling (Issue #981)
**Date:** Wed, 17 Sep 2025 04:08:21 -0700

### Body (preview)

ZihaoFU245 left a comment (openai/openai-agents-python#981)



Sorry, I thought it was the other issue. My bad. This issue comes from the

compatibility issue with LiteLLM and ollama. I used an OpenAI compatible

provider (Open router) and the issue is gone. If you want to use Ollama,

try gpt-oss





On Wed, Sep 17, 2025 at 7:03 PM zihao fu ***@***.***> wrote:



> I met this issue when I was using CLAUDE SONNET 4.  Now I switch to GPT-5

> which is better at coding and never made this mistake. Just use another

> model or strictly require him to add \n after using replacement tool

>

> On Wed, Sep 17, 2025 at 5:55 PM sir3mat ***@***.***> wrote:

>

>> *sir3mat* left a comment (openai/openai-agents-python#981)

>> <https://github.com/openai/openai-agents-python/issues/981#issuecomment-3302226972>

>>

>> how did you fix it?

>>

>> —

>> Reply to this email directly, view it on GitHub

>> <https://github.com/openai/openai-agents-python/issues/981#issuecomment-3302226972>,

>> or unsubscribe

>> <https://github.com/notifications/unsubscribe-auth/BJEML3WHEUO34ALAI2NEY6T3TEVYRAVCNFSM6AAAAACAPSE7JKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGMBSGIZDMOJXGI>

>> .

>> You are receiving this because you modified the open/close state.Message

>> ID: ***@***.***>

>>

>





-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/981#issuecomment-3302485435

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/981/3302485435@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
