Skip to content

Commit 84f5d60

Browse files
committed
Addressed bandit false positive
1 parent 0e2eda0 commit 84f5d60

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## 0.12.0
4+
- Fixed Bandit security scan false positive on the LLM memory default
5+
`context_token_trigger`.
46
- Fixed `makevectordatabase` document indexing so stored LanceDB `content` contains the
57
shingled text that was embedded, rather than only the final split chunk.
68
- Added LLM memory controls to prompt adapters, `llmPrompt`, and guided-generation

src/talkpipe/llm/chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
PROMPT_ADAPTER_COMPAT_KWARG_DEFAULTS = {
2525
"memory_mode": "full",
2626
"unsummarized_message_count": 6,
27-
"context_token_trigger": None,
27+
# Controls memory token-budget compaction; not a credential.
28+
"context_token_trigger": None, # nosec B105
2829
"memory_size": 512,
2930
"debug_messages": False,
3031
}

0 commit comments

Comments
 (0)