Skip to content

Commit 8281ceb

Browse files
authored
Refa: refine retry gap. (#8773)
### What problem does this PR solve? ### Type of change - [x] Refactoring - [x] Performance Improvement
1 parent 9f94d88 commit 8281ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rag/llm/chat_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, key, model_name, base_url, **kwargs):
7373

7474
def _get_delay(self):
7575
"""Calculate retry delay time"""
76-
return self.base_delay + random.uniform(0, 0.5)
76+
return self.base_delay + random.uniform(10, 150)
7777

7878
def _classify_error(self, error):
7979
"""Classify error based on error message content"""

0 commit comments

Comments
 (0)