Skip to content

Commit ab2eb40

Browse files
committed
Update .pr_agent.toml to change model reference and remove unused configurations
- Updated the model reference to use the new openrouter path. - Removed unnecessary configurations related to language support, review prompts, and file type filters for clarity.
1 parent d350336 commit ab2eb40

File tree

1 file changed

+2
-43
lines changed

1 file changed

+2
-43
lines changed

.pr_agent.toml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,3 @@
1-
[config] # in configuration.toml
2-
model="deepseek/deepseek-r1-0528-qwen3-8b:free"
1+
[config]
2+
model="openrouter/deepseek/deepseek-r1-0528-qwen3-8b:free"
33
fallback_models=["openrouter/deepseek/deepseek-r1-0528:free"]
4-
custom_model_max_tokens=20000
5-
6-
[pr-agent]
7-
# 使用中文回复
8-
language = "zh"
9-
enable_synchronize = true
10-
force_review = true
11-
12-
[pr-agent.prompts]
13-
# 自定义PR评论提示
14-
review_prompt = """
15-
请以中文回复,对以下PR进行代码审查:
16-
17-
1. 代码质量和最佳实践
18-
2. 潜在的安全问题
19-
3. 性能优化建议
20-
4. 可读性和维护性
21-
5. 测试覆盖建议
22-
23-
请提供具体、有建设性的反馈。
24-
"""
25-
26-
[pr-agent.review]
27-
# 评论设置
28-
comment_lgtm = false
29-
enable_auto_approval = false
30-
enable_auto_merge = false
31-
32-
[pr-agent.path_filters]
33-
# 文件类型过滤
34-
include_patterns = [
35-
"**/*.py",
36-
"**/*.js",
37-
"**/*.ts",
38-
"**/*.yml",
39-
"**/*.yaml",
40-
"**/*.json",
41-
"**/*.md",
42-
"**/*.dockerfile",
43-
"**/Dockerfile"
44-
]

0 commit comments

Comments
 (0)