forked from antlss/gitlab-review-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
88 lines (71 loc) · 2.18 KB
/
Copy path.env.example
File metadata and controls
88 lines (71 loc) · 2.18 KB
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
88
# Server
SERVER_PORT=8080
SERVER_HOST=0.0.0.0
# Store
# Driver selects the backend: "postgres", "sqlite", or "file"
STORE_DRIVER=file
# If STORE_DRIVER=postgres
DATABASE_URL=postgres://user:password@localhost:5432/ai_review_agent?sslmode=disable
DATABASE_MAX_OPEN_CONNS=25
DATABASE_MAX_IDLE_CONNS=5
# If STORE_DRIVER=sqlite
SQLITE_PATH=data/review-agent.db
# If STORE_DRIVER=file
STORE_DATA_DIR=resource/data
# Git
GIT_REPOS_DIR=resource/repos
# GitLab
GITLAB_BASE_URL=https://gitlab.example.com
GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
GITLAB_WEBHOOK_SECRET=your-webhook-secret-here
GITLAB_BOT_USER_ID=12345
# LLM — Default model (can be overridden per-repo in DB)
LLM_DEFAULT_PROVIDER=openai
LLM_DEFAULT_MODEL=gpt-4o
# OpenAI
OPENAI_API_KEY=sk-xxxx
OPENAI_BASE_URL=https://api.openai.com/v1
# Load balancing: additional keys (comma-separated), merged with OPENAI_API_KEY
#OPENAI_API_KEYS=
# Anthropic
ANTHROPIC_API_KEY=sk-ant-xxxx
# Load balancing: additional keys (comma-separated), merged with ANTHROPIC_API_KEY
#ANTHROPIC_API_KEYS=
# Google
GOOGLE_API_KEY=AIzaxxxx
# Load balancing: additional keys (comma-separated), merged with GOOGLE_API_KEY
#GOOGLE_API_KEYS=
# Worker Pool
WORKER_POOL_SIZE=5
WORKER_POLL_INTERVAL_MS=500
# Review limits
REVIEW_MAX_FILES_BEFORE_SAMPLE=150
REVIEW_SAMPLE_FILE_COUNT=30
REVIEW_LARGE_PR_ACTION=sample
# Max file count to pre-inject ALL diffs into user message
REVIEW_PRELOAD_DIFF_THRESHOLD=20
# Max total KB of pre-injected diff content
REVIEW_PRELOAD_DIFF_MAX_KB=100
# MR label that triggers AI review (MRs must have this label to be reviewed)
REVIEW_TRIGGER_LABEL=ai-review
# AI response language for GitLab comments/replies (en | vi | ja)
AI_RESPONSE_LANGUAGE=en
# Tool Registry
TOOL_READ_FILE_MAX_KB=40
TOOL_SEARCH_MAX_RESULTS=50
TOOL_MULTI_DIFF_MAX_FILES=20
TOOL_MULTI_DIFF_MAX_KB=80
TOOL_READ_MULTI_FILE_MAX_FILES=10
TOOL_READ_MULTI_FILE_PER_FILE_MAX_KB=20
# Context Window
LLM_CONTEXT_COMPRESSION_THRESHOLD=0.80
TOOL_RESULT_MAX_LINES=80
# Cron
CRON_FEEDBACK_CONSOLIDATE_SCHEDULE="0 2 * * 1"
FEEDBACK_CONSOLIDATE_MIN_COUNT=30
FEEDBACK_CONSOLIDATE_MIN_AGE_DAYS=14
FEEDBACK_CUSTOM_PROMPT_MAX_WORDS=800
# Logging
LOG_LEVEL=info
# Options: json, console, beauty
LOG_FORMAT=json