Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Translate
Translate
Inactive
0
Follow
R
RAPHCVR
last year
Β·
Hi , when using llama index and ask for translating a document, or some other tasks to last gpt-4 using your api, I often encounter api timeouts (because too much retries), how to fix that ?
L
R
4 comments
Share
Open in Discord
L
Logan M
last year
I think you'll need to either increase the timeout or increase the retries
llm = OpenAI(..., timeout=60.0, max_retries=3)
That is the default parameters
R
RAPHCVR
last year
Okey, but why there is retries ?
L
Logan M
last year
Not sure -- maybe because the request is taking longer than 60s? Network issue?
R
RAPHCVR
last year
no, does not have any network issues, as it's a azure vm lol
Add a reply
Sign up and join the conversation on Discord
Join on Discord