{"version":"2.1.333","anchor":"plugin-hooks-modules-get-httpstream-and-modelstream-functi","canonical_anchor":"plugin-hooks-modules-get-httpstream-and-modelstream-functi","heading":"Plugin hooks can stream web responses and model output","tier":"internal","area":"Plugin Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-hooks-modules-get-httpstream-and-modelstream-functi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin hooks can stream web responses and model output\n\nPlugin function hooks get streaming calls for web requests, as text or bytes, and for model responses\n\n**What**\n\nPlugins can include hooks written as code functions. Those functions now have two streaming calls, which deliver a response piece by piece as it arrives instead of all at once:\n\n- `http.stream`, for web requests, read as text or as raw bytes\n\n- `model.stream`, for responses from the model\n\n**Why**\n\nPlugin authors can handle long responses as they come in.\n\n- Area: Plugin Hooks\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}