Upload file timeout for >200mb file

Hello,
I’m trying to upload a big file (>200mb) to be used in an assistant rag system and after a minute or so I’m getting a timeout error.
Is there any way to increase the timeout? 1min doesn’t seem reasonable for files up to 500mb.

Thanks in advance

Welcome to the community!

you’re saying the OpenAI API call is timing out?

Does it time out only for retrieval, or does it time out for any API call? I thought the timeout counter is usually set by the producer of the API call, but I could be wrong. I don’t think there’s a way to change the timeout counter, but I’m wondering if this is a network issue

2 Likes

Thanks for your reply.
actually, I was able to solve the issues by changing the timeout at Open ai client level, I’ll leave it here since it can help other people as well:

from httpx import Timeout
from openai import OpenAI
OpenAI(timeout=Timeout(60, connect=5))

Thanks for the help once again.

1 Like