We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b220e commit 475da21Copy full SHA for 475da21
src/mcp_as_a_judge/db/conversation_history_service.py
@@ -61,10 +61,8 @@ async def load_context_for_enrichment(
61
logger.info(f"📚 Retrieved {len(recent_records)} conversation records from DB")
62
63
# Apply LLM context filtering: ensure history + current prompt will fit within token limit
64
- # This filters the list without modifying the database
65
- filtered_records = filter_records_by_token_limit(
66
- records=recent_records, max_records=self.config.database.max_session_records
67
- )
+ # This filters the list without modifying the database (only token limit matters for LLM)
+ filtered_records = filter_records_by_token_limit(recent_records)
68
69
logger.info(
70
f"✅ Returning {len(filtered_records)} conversation records for LLM context"
0 commit comments