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, Tuple[str, str], str, Dict[str, Any]]]], is_gemini: bool = False, stream: bool = False, run_manager: Optional[CallbackManagerForLLMRun] = None, **kwargs: Any) Any [source]ΒΆ
Use tenacity to retry the completion call.
- Parameters
llm (GooglePalm) β
prompt (Union[PromptValue, str, Sequence[Union[BaseMessage, Tuple[str, str], str, Dict[str, Any]]]]) β
is_gemini (bool) β
stream (bool) β
run_manager (Optional[CallbackManagerForLLMRun]) β
kwargs (Any) β
- Return type
Any