completion_with_retry#
- langchain_community.llms.vertexai.completion_with_retry(llm: VertexAI, prompt: List[str | 'Image'], stream: bool = False, is_gemini: bool = False, run_manager: CallbackManagerForLLMRun | None = None, **kwargs: Any) Any [source]#
使用tenacity重试完成调用。
- Parameters:
llm (VertexAI)
prompt (列表[联合[字符串, '图像']])
stream (bool)
is_gemini (bool)
run_manager (可选[CallbackManagerForLLMRun])
kwargs (Any)
- Return type:
任何