feat: LLM queue optimizer — resource-aware batch scheduler (closes #2) #15
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ def _trim_to_letter_end(text: str) -> str:
|
||||||
candidate_first = (_profile.name.split()[0] if _profile else "").strip()
|
candidate_first = (_profile.name.split()[0] if _profile else "").strip()
|
||||||
pattern = (
|
pattern = (
|
||||||
r'(?:Warm regards|Sincerely|Best regards|Kind regards|Thank you)[,.]?\s*\n+\s*'
|
r'(?:Warm regards|Sincerely|Best regards|Kind regards|Thank you)[,.]?\s*\n+\s*'
|
||||||
+ (re.escape(candidate_first) if candidate_first else r'\w+')
|
+ (re.escape(candidate_first) if candidate_first else r'\w+(?:\s+\w+)?')
|
||||||
+ r'\b'
|
+ r'\b'
|
||||||
)
|
)
|
||||||
m = re.search(pattern, text, re.IGNORECASE)
|
m = re.search(pattern, text, re.IGNORECASE)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue