# completion_with_retry

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/llms/google_palm/completion_with_retry)

Use tenacity to retry the completion call.

## Signature

```python
completion_with_retry(
    llm: GooglePalm,
    prompt: LanguageModelInput,
    is_gemini: bool = False,
    stream: bool = False,
    run_manager: Optional[CallbackManagerForLLMRun] = None,
    **kwargs: Any = {},
) -> Any
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/llms/google_palm.py#L16)