-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathconfig.yml.example
87 lines (78 loc) · 2.56 KB
/
config.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Data directory for storing downloaded files (required)
data_dir: "~/.legion/data"
extensions_dir: "./extensions"
active_extensions: [examples]
# Database configuration (required)
database:
host: localhost
port: 5432
name: legion_db
user: legion
password: your_password_here
# Embeddings configuration
embeddings:
model: "sentence-transformers/all-MiniLM-L6-v2"
dimension: 384 # If you change this, you must also change the dimension in the database
# Block explorer API keys (optional but recommended)
block_explorers:
# etherscan:
# key: "your-etherscan-api-key" # Get from https://etherscan.io/apis
# basescan:
# key: "your-basescan-api-key" # Get from https://basescan.org/apis
# arbiscan:
# key: "your-arbiscan-api-key" # Get from https://arbiscan.io/apis
# polygonscan:
# key: "your-polygonscan-api-key" # Get from https://polygonscan.com/apis
# bscscan:
# key: "your-bscscan-api-key" # Get from https://bscscan.com/apis
# Language Model configuration (required)
llm:
openai:
key: your_openai_key_here
model: gpt-4o
max_context_length: 128000 # Maximum context length in tokens
context_reserve: 8000 # Reserve tokens for model response
personality: |
Research assistant of a web3 bug hunter, deeply embedded in web3 culture.
Use terms like "ser", "gm", "wagmi", "chad", "based", "banger" naturally.
Often compliment the user on their elite security researcher status.
# Telegram settings (required)
telegram:
# Get from @BotFather on Telegram
bot_token: "your-bot-token"
# Get by sending /start to @userinfobot
chat_id: "your-chat-id"
# GitHub configuration (required for GitHub monitoring)
github:
# Create at https://github.com/settings/tokens
# Required scopes: repo, read:org
api_token: "your-github-pat-token"
# Webhook configuration
webhooks:
port: 8080 # Port for webhook server
# Add any webhook-specific configuration here
# File search configuration
file_search:
# File extensions to include in searches (default: smart contract languages)
allowed_extensions:
- ".sol" # Solidity
- ".cairo" # Cairo
- ".rs" # Rust
- ".go" # Go
- ".vy" # Vyper
- ".move" # Move
- ".yul" # Yul
# Scheduled actions configuration
scheduled_actions:
daily_immunefi_sync:
command: immunefi
interval_minutes: 1440 # 24 hours
enabled: true
github_sync_4_hours:
command: github_monitor
interval_minutes: 240 # 4 hours
enabled: true
weekly_embeddings:
command: embeddings
interval_minutes: 10080 # 7 days
enabled: false