diff --git a/rector.php b/rector.php index 3997350..15ee38f 100644 --- a/rector.php +++ b/rector.php @@ -6,7 +6,6 @@ use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector; -use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertCountWithZeroToAssertEmptyRector; use Rector\PHPUnit\Set\PHPUnitSetList; return RectorConfig::configure() @@ -25,7 +24,6 @@ ]) ->withImportNames(importShortClasses: false) ->withSkip([ - AssertCountWithZeroToAssertEmptyRector::class, ClosureToArrowFunctionRector::class, PreferPHPUnitThisCallRector::class, ]) diff --git a/src/Profiler/TraceablePlatform.php b/src/Profiler/TraceablePlatform.php index 60f9d3f..229aa1f 100644 --- a/src/Profiler/TraceablePlatform.php +++ b/src/Profiler/TraceablePlatform.php @@ -4,6 +4,7 @@ namespace PhpLlm\LlmChainBundle\Profiler; +use PhpLlm\LlmChain\Model\Message\Content\File; use PhpLlm\LlmChain\Model\Model; use PhpLlm\LlmChain\Model\Response\AsyncResponse; use PhpLlm\LlmChain\Model\Response\ResponseInterface; @@ -33,6 +34,10 @@ public function request(Model $model, array|string|object $input, array $options { $response = $this->platform->request($model, $input, $options); + if ($input instanceof File) { + $input = $input::class.': '.$input->getFormat(); + } + $this->calls[] = [ 'model' => $model, 'input' => is_object($input) ? clone $input : $input,