mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
96e12ac926
commit
d8d088b669
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ def _load_competitors_excluding_brand(brand_self: List[str]) -> List[str]:
|
|||
continue
|
||||
match_str = entry.get("match") or ""
|
||||
variants = [v.strip().lower() for v in match_str.split("|") if v.strip()]
|
||||
words_in_match: set[str] = set()
|
||||
words_in_match: Set[str] = set()
|
||||
for v in variants:
|
||||
words_in_match.update(v.split())
|
||||
if brand_set & words_in_match or any(v in brand_set for v in variants):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue