WordPress / WordPress/php-ai-client

Add support for streaming

Open
#100 1 comment 9 reactions 1 assignee View on GitHub

@thelovekesh is already working on this.

Since Jun 18, 2026.

[Feature]
Dominant language
PHP
Stars
308
Forks
84
Avg merge
7d 21h
Merged PRs (30d)
2

Description

See #8: A crucial piece of functionality still missing in our SDK is response streaming - a quite complex piece of functionality to get right, especially with the incomplete documentation of how different providers implement it. But we need it, that's for sure.

What we'll need to do is:

  • Implement the primitives needed for streaming (likely some kind of stream response class, potentially a new stream method on HttpTransporter).
  • Implement actual streaming for the three providers (which can fortunately be centralized in the OpenAI API compatible implementation for now).

Putting here some references for inspiration in how I implemented streaming (still with some limitations) in the AI Services plugin for WordPress:

There's definitely things to improve there which we should do here, but it's a decent starting point to review this and come up with effectively a v2 of that implementation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.