# stream_generate_with_retry

> **Function** in `langchain_community`

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

Use tenacity to retry the completion call.

## Signature

```python
stream_generate_with_retry(
    llm: Tongyi,
    **kwargs: Any = {},
) -> Any
```

---

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