fix 4 optimize systemMsg and model default config values
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user