From 26f04ee4bbe70f8dcfb7c7e869734dc1ed326a1a Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Wed, 2 Oct 2024 11:57:06 +0200 Subject: [PATCH] - --- examples/structured-output-math.php | 1 - src/StructuredOutput/SchemaFactory.php | 11 +++++------ tests/StructuredOutput/ResponseFormatFactoryTest.php | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/structured-output-math.php b/examples/structured-output-math.php index 7eea2997..c021e718 100644 --- a/examples/structured-output-math.php +++ b/examples/structured-output-math.php @@ -8,7 +8,6 @@ use PhpLlm\LlmChain\OpenAI\Platform\OpenAI; use PhpLlm\LlmChain\StructuredOutput\ChainProcessor; use PhpLlm\LlmChain\StructuredOutput\ResponseFormatFactory; -use PhpLlm\LlmChain\StructuredOutput\SchemaFactory; use PhpLlm\LlmChain\Tests\StructuredOutput\Data\MathReasoning; use Symfony\Component\Dotenv\Dotenv; use Symfony\Component\HttpClient\HttpClient; diff --git a/src/StructuredOutput/SchemaFactory.php b/src/StructuredOutput/SchemaFactory.php index a6b92820..96f1c683 100644 --- a/src/StructuredOutput/SchemaFactory.php +++ b/src/StructuredOutput/SchemaFactory.php @@ -19,13 +19,12 @@ public function __construct( $reflectionExtractor = new ReflectionExtractor(); $this->propertyInfo = new PropertyInfoExtractor( - [$reflectionExtractor], - [$phpDocExtractor, $reflectionExtractor], - [$phpDocExtractor], - [$reflectionExtractor], - ); + [$reflectionExtractor], + [$phpDocExtractor, $reflectionExtractor], + [$phpDocExtractor], + [$reflectionExtractor], + ); } - } /** diff --git a/tests/StructuredOutput/ResponseFormatFactoryTest.php b/tests/StructuredOutput/ResponseFormatFactoryTest.php index eb9f267e..2792cfb9 100644 --- a/tests/StructuredOutput/ResponseFormatFactoryTest.php +++ b/tests/StructuredOutput/ResponseFormatFactoryTest.php @@ -5,7 +5,6 @@ namespace PhpLlm\LlmChain\Tests\StructuredOutput; use PhpLlm\LlmChain\StructuredOutput\ResponseFormatFactory; -use PhpLlm\LlmChain\StructuredOutput\SchemaFactory; use PhpLlm\LlmChain\Tests\StructuredOutput\Data\User; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\Test;