fix: align tag slice limit with prompt upper bound (5-8 tags)
This commit is contained in:
parent
867542dd49
commit
a5037aa808
@ -202,7 +202,7 @@ async def flush_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> N
|
|||||||
f"Summary to tag:\n\n{summary_text}",
|
f"Summary to tag:\n\n{summary_text}",
|
||||||
system_prompt=_TAGS_SYSTEM_PROMPT,
|
system_prompt=_TAGS_SYSTEM_PROMPT,
|
||||||
)
|
)
|
||||||
tags = [t.strip().lower() for t in tags_raw.split(",") if t.strip()][:10]
|
tags = [t.strip().lower() for t in tags_raw.split(",") if t.strip()][:8]
|
||||||
|
|
||||||
message_count = sum(1 for m in history if m["role"] == "user")
|
message_count = sum(1 for m in history if m["role"] == "user")
|
||||||
thread_summary = ThreadSummary(
|
thread_summary = ThreadSummary(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user