Toggle Menu
Prev Up Next

# `langchain_community.llms.vertexai`.completion_with_retry

langchain_community.llms.vertexai.completion_with_retry(llm: VertexAI, prompt: List[Union[str, 'Image']], stream: bool = False, is_gemini: bool = False, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any) → Any

  Use tenacity to retry the completion call.

  Parameters

    - llm (VertexAI) –

    - prompt (List[Union[str, 'Image']]) –

    - stream (bool) –

    - is_gemini (bool) –

    - run_manager (Optional[CallbackManagerForLLMRun]) –

    - kwargs (Any) –

  Return type

    Any