completion_with_retry#
- langchain_community.llms.openai.completion_with_retry(llm: BaseOpenAI | OpenAIChat, run_manager: CallbackManagerForLLMRun | None = None, **kwargs: Any) Any [source]#
Use tenacity to retry the completion call.
- Parameters:
llm (BaseOpenAI | OpenAIChat) –
run_manager (CallbackManagerForLLMRun | None) –
kwargs (Any) –
- Return type:
Any