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][source]

为 PremAI API 错误创建重试装饰器。

参数
返回类型

Callable[[Any], Any]