api retry

Can the number of error retries be increased for the AI API? My third-party API is not particularly stable; otherwise, the task will stop as soon as an error occurs.

Which ai api in particular?

I can increase timeout and retries.