This repository was archived by the owner on Jul 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use PhpLlm \FabricPattern \Pattern ;
56use PhpLlm \LlmChain \Chain \Chain ;
67use PhpLlm \LlmChain \Platform \Bridge \OpenAI \GPT ;
78use PhpLlm \LlmChain \Platform \Bridge \OpenAI \PlatformFactory ;
1516 exit (1 );
1617}
1718
18- if (!class_exists (\ PhpLlm \ FabricPattern \ Pattern::class)) {
19+ if (!class_exists (Pattern::class)) {
1920 echo 'Fabric patterns are not installed. Please install them with: composer require php-llm/fabric-pattern ' .\PHP_EOL ;
2021 exit (1 );
2122}
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use PhpLlm \FabricPattern \Pattern ;
56use PhpLlm \LlmChain \Chain \Chain ;
67use PhpLlm \LlmChain \Platform \Bridge \OpenAI \GPT ;
78use PhpLlm \LlmChain \Platform \Bridge \OpenAI \PlatformFactory ;
1617 exit (1 );
1718}
1819
19- if (!class_exists (\ PhpLlm \ FabricPattern \ Pattern::class)) {
20+ if (!class_exists (Pattern::class)) {
2021 echo 'Fabric patterns are not installed. Please install them with: composer require php-llm/fabric-pattern ' .\PHP_EOL ;
2122 exit (1 );
2223}
Original file line number Diff line number Diff line change 44
55namespace PhpLlm \LlmChain \Platform \Fabric ;
66
7+ use PhpLlm \FabricPattern \Pattern ;
78use PhpLlm \LlmChain \Platform \Fabric \Exception \PatternNotFoundException ;
89
910/**
@@ -22,7 +23,7 @@ public function __construct(?string $patternsPath = null)
2223 {
2324 if (null === $ patternsPath ) {
2425 // Check if Fabric patterns package is installed
25- if (!class_exists (\ PhpLlm \ FabricPattern \ Pattern::class)) {
26+ if (!class_exists (Pattern::class)) {
2627 throw new \RuntimeException ('Fabric patterns not found. Please install the "php-llm/fabric-pattern" package: composer require php-llm/fabric-pattern ' );
2728 }
2829
You can’t perform that action at this time.
0 commit comments