Toggle Menu
Prev Up Next

# `langchain_community.chat_models.premai`.create_prem_retry_decorator

langchain_community.chat_models.premai.create_prem_retry_decorator(llm: ChatPremAI, *, max_retries: int = 1, run_manager: Optional[CallbackManagerForLLMRun] = None) → Callable[[Any], Any]

  Create a retry decorator for PremAI API errors.

  Parameters

    - llm (ChatPremAI) –

    - max_retries (int) –

    - run_manager (Optional[CallbackManagerForLLMRun]) –

  Return type

    Callable[[Any], Any]