bradvin/wp-ai-client-streaming 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bradvin/wp-ai-client-streaming

最新稳定版本:v0.1.1

Composer 安装命令:

composer require bradvin/wp-ai-client-streaming

包简介

WordPress AI streaming adapter package that mirrors WordPress 7 AI integration patterns.

README 文档

README

bradvin/wp-ai-client-streaming is a WordPress 7 streaming adapter package designed to read like a small extension of core’s AI client layer.

It exposes core-style WP_AI_* classes and helper functions, while leaving initialization explicit so callers can bootstrap it early in their own plugin load order.

If you are reviewing the package for upstream WordPress use, start with:

  • docs/core-review-notes.md
  • docs/integration-guide.md

Install

composer require bradvin/wp-ai-client-streaming:^0.1

Demo Plugin

If you want a working wrapper plugin and demo UI for this package, see:

  • https://github.com/bradvin/wp-stream

Bootstrap

Initialize the discovery strategy during your plugin bootstrap, before you start registering or using AI providers:

WP_AI_Client_Streaming_Discovery_Strategy::init();

Usage

Use the streaming-aware prompt helper directly:

$result = wp_ai_client_stream_prompt(
	$prompt_messages,
	array(
		'streaming_enabled' => true,
	)
)
	->using_model_config( $model_config )
	->generate_result();

Or wrap an existing core prompt builder:

$builder = wp_ai_client_prompt( $prompt_messages )->using_model_config( $model_config );
$result  = wp_ai_client_stream( $builder, array( 'streaming_enabled' => true ) )->generate_result();

For transport diagnostics against the default registry, call:

$diagnostics = WP_AI_Client_Streaming_Transport_Diagnostics::get_default_registry_diagnostics();

License

bradvin/wp-ai-client-streaming is licensed under GPL-2.0-or-later.

Publishing

The latest tagged release for this package is v0.1.1.

For the publish checklist, see docs/publishing.md.

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固