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]¶
Use tenacity to retry the completion call.
- Parameters
llm (Union[BaseOpenAI, OpenAIChat]) –
run_manager (Optional[CallbackManagerForLLMRun]) –
kwargs (Any) –
- Return type
Any