Fix: fix error 429 api rate limit when building knowledge graph for all chat model and Mistral embedding model (#9106)

### What problem does this PR solve?

fix error 429 api rate limit when building knowledge graph for all chat
model and Mistral embedding model.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
謝富祥
2025-07-30 11:37:49 +08:00
committed by GitHub
parent e26f37351d
commit 021e8b57ae
2 changed files with 29 additions and 12 deletions

View File

@ -73,7 +73,7 @@ class Base(ABC):
def _get_delay(self):
"""Calculate retry delay time"""
return self.base_delay + random.uniform(10, 150)
return self.base_delay + random.uniform(60, 150)
def _classify_error(self, error):
"""Classify error based on error message content"""