mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +00:00
community[patch]: docstrings (#16810)
- added missed docstrings - formated docstrings to the consistent form
This commit is contained in:
@@ -58,6 +58,8 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ChatDeepInfraException(Exception):
|
||||
"""Exception raised when the DeepInfra API returns an error."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
@@ -67,7 +69,7 @@ def _create_retry_decorator(
|
||||
Union[AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun]
|
||||
] = None,
|
||||
) -> Callable[[Any], Any]:
|
||||
"""Returns a tenacity retry decorator, preconfigured to handle PaLM exceptions"""
|
||||
"""Returns a tenacity retry decorator, preconfigured to handle PaLM exceptions."""
|
||||
return create_base_retry_decorator(
|
||||
error_types=[requests.exceptions.ConnectTimeout, ChatDeepInfraException],
|
||||
max_retries=llm.max_retries,
|
||||
|
Reference in New Issue
Block a user