langchain_community.llms.openai
.completion_with_retry¶
- langchain_community.llms.openai.completion_with_retry(llm: Union[BaseOpenAI, OpenAIChat], run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any) Any [source]¶
使用tenacity库重试完成调用。
- 参数
llm (Union[BaseOpenAI, OpenAIChat]) –
run_manager (Optional[CallbackManagerForLLMRun]) –
kwargs (Any) –
- 返回类型
Any