langchain_community.chat_models.premai
.chat_with_retry¶
- langchain_community.chat_models.premai.chat_with_retry(llm: ChatPremAI, project_id: int, messages: List[dict], stream: bool = False, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any) Any [source]¶
在完成调用中使用tenacity进行重试
- 参数
llm (ChatPremAI) –
project_id (int) –
messages (List[dict]) –
stream (bool) –
run_manager (Optional[CallbackManagerForLLMRun]) –
kwargs (Any) –
- 返回类型
Any