Feat: add exponential back-off for Chat LiteLLM (#9880)

### What problem does this PR solve?

Add exponential back-off for Chat LiteLLM. #9858.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-09-03 13:31:43 +08:00
committed by GitHub
parent 1bc33009c7
commit b58e882eaa

View File

@ -1534,6 +1534,7 @@ class LiteLLMBase(ABC):
"model": self.model_name, "model": self.model_name,
"messages": history, "messages": history,
"api_key": self.api_key, "api_key": self.api_key,
"num_retries": self.max_retries,
**kwargs, **kwargs,
} }
if stream: if stream: