Explorar el Código

Refa: refine retry gap. (#8773)

### What problem does this PR solve?

### Type of change

- [x] Refactoring
- [x] Performance Improvement
tags/v0.20.0
Kevin Hu hace 3 meses
padre
commit
8281ceb406
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      rag/llm/chat_model.py

+ 1
- 1
rag/llm/chat_model.py Ver fichero

@@ -73,7 +73,7 @@ class Base(ABC):

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

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

Cargando…
Cancelar
Guardar