langchain_community.llms.google_palm
.completion_with_retry¶
- langchain_community.llms.google_palm.completion_with_retry(llm: GooglePalm, prompt: Union[PromptValue, str, Sequence[Union[BaseMessage, List[str], Tuple[str, str], str, Dict[str, Any]]]], is_gemini: bool = False, stream: bool = False, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any) Any [source]¶
使用耐久性重试完成调用。
- 参数
llm (GooglePalm) –
prompt (Union[PromptValue, str, Sequence[Union[BaseMessage, List[str], Tuple[str, str], str, Dict[str, Any]]]) –
is_gemini (bool) –
stream (bool) –
run_manager (可选[CallbackManagerForLLMRun]) –
kwargs (任何类型) –
- 返回类型
任何类型