fix 4 optimize systemMsg and model default config values

This commit is contained in:
team 1
2026-04-24 19:52:35 +02:00
parent 2fd7977693
commit 9312562dd8
6 changed files with 313 additions and 9 deletions

View File

@@ -205,13 +205,8 @@ final readonly class CommerceQueryParser
) ?? $text;
}
if ($brand !== null && $brand !== '' && !$this->isBrandPartOfModelPhrase($prompt, $brand)) {
$text = preg_replace(
$this->config->buildExactTokenRemovalPattern($brand),
' ',
$text
) ?? $text;
}
// Keep known brand terms in the shop search text because the Store API
// request does not add a separate manufacturer filter.
if ($priceMin !== null || $priceMax !== null) {
foreach ($this->config->getPriceRemovalPatterns($this->intentConfig) as $pattern) {