Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ GROQ_API_KEY=your_groq_api_key_here

# OpenRouter Model Selection (optional)
OPENROUTER_MODEL=openai/gpt-4o-mini

# Set it to a positive integer(window size in lines) to trim log blocks that only differ in timestamps. This saves input tokens and reduces context length.
Comment thread
KaminariOS marked this conversation as resolved.
# For example, if LOG_TRIM=2, the code will compare every 1 line, and then every 2 lines for duplication.
LOG_TRIM=0
2 changes: 1 addition & 1 deletion aiopslab/orchestrator/actions/log_deduplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def greedy_compress_lines(
log_trim = int(value) if value is not None else None
except ValueError:
log_trim = None
if not log_trim:
if not log_trim or log_trim <= 0:
return raw_str
window_size = log_trim
lines = raw_str.splitlines()
Expand Down