Toggle Menu
Prev Up Next

# `langchain_community.llms.openai`.acompletion_with_retry

async langchain_community.llms.openai.acompletion_with_retry(llm: Union[BaseOpenAI, OpenAIChat], run_manager: Optional[AsyncCallbackManagerForLLMRun] = None, **kwargs: Any) → Any

  Use tenacity to retry the async completion call.

  Parameters

    - llm (Union[BaseOpenAI, OpenAIChat]) –

    - run_manager (Optional[AsyncCallbackManagerForLLMRun]) –

    - kwargs (Any) –

  Return type

    Any