add history to shop search
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
@@ -8,7 +7,7 @@ namespace App\Service;
|
||||
use App\Entity\ModelGenerationConfig;
|
||||
use App\Repository\ModelGenerationConfigRepository;
|
||||
|
||||
final class ModelGenerationConfigProvider
|
||||
final readonly class ModelGenerationConfigProvider
|
||||
{
|
||||
public function __construct(
|
||||
private ModelGenerationConfigRepository $repository
|
||||
@@ -39,4 +38,11 @@ final class ModelGenerationConfigProvider
|
||||
active: false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function getActiveNumCtx(): int
|
||||
{
|
||||
$numCtx = (int) $this->getActiveForModel()->getNumCtx();
|
||||
|
||||
return max(512, $numCtx);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user