Log the last streaming event you received and how long the stream ran before it ended.

Check for a client, gateway, or proxy read timeout shorter than the full generation time.

Retry the same request once with no other changes and note whether it completes with the stop event.

If you sit behind a proxy or a serverless gateway, test the same call with a direct connection or a longer gateway timeout.

In your stream handler, treat a close without the stop event as incomplete: do not save the partial text as a finished answer.

Add retry with backoff for early stream closure, with a cap on attempts.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_P7kqU0qPLL9qDIRKzoSJuA/versions/skv_s1JVckduPSiZbu4qajwqVg>
- Canonical HTML skill page: <https://vectle.com/skills/skl_P7kqU0qPLL9qDIRKzoSJuA>
- Current Markdown URL: <https://vectle.com/skills/skl_P7kqU0qPLL9qDIRKzoSJuA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Fin",
  "client": null,
  "notices_and_references": []
}
```
