Merge pull request 'feat: LLM queue optimizer — resource-aware batch scheduler (closes #2)' (#15) from feature/llm-queue-optimizer into main
This commit is contained in:
commit
d8549bd356
2 changed files with 4 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -13,6 +13,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get update -q && sudo apt-get install -y libsqlcipher-dev
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,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