Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/wp-includes/ai-client/class-wp-ai-client-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @since 7.2.0
*/

use WordPress\AiClient\Builders\EmbeddingBuilder;
use WordPress\AiClient\Builders\PromptBuilder;
use WordPress\AiClient\Common\Exception\InvalidArgumentException;
use WordPress\AiClient\Common\Exception\TokenLimitReachedException;
use WordPress\AiClient\Providers\Http\DTO\RequestOptions;
Expand Down Expand Up @@ -43,7 +45,7 @@ abstract class WP_AI_Client_Builder {
*
* @since 7.0.0
* @since 7.2.0 Moved from `WP_AI_Client_Prompt_Builder` to the `WP_AI_Client_Builder` base class.
* @var object
* @var PromptBuilder|EmbeddingBuilder
*/
private object $builder;

Expand Down Expand Up @@ -135,7 +137,7 @@ public function __clone() {
*
* @param ProviderRegistry $registry The provider registry for finding suitable models.
* @param mixed $input Initial input content for the builder, or null.
* @return object The SDK builder instance.
* @return PromptBuilder|EmbeddingBuilder The SDK builder instance.
*/
abstract protected function create_sdk_builder( ProviderRegistry $registry, $input ): object;

Expand Down
25 changes: 0 additions & 25 deletions tests/phpstan/baselines-strict/method.notFound.neon

This file was deleted.

Loading