From e0b133ea1e0aefaf920cab275212ae9a10e46cdd Mon Sep 17 00:00:00 2001 From: Hua Date: Tue, 18 Feb 2025 17:24:11 +0800 Subject: [PATCH] readme --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 371ad70..d49bd72 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,37 @@ admin_token: "your-admin-token" # 管理页面访问令牌 ais: - name: "your-ai" type: "ollama" # 或 "openai" + api_key: "" url: "http://localhost:11434" # AI服务地址 model: "your-model" # 使用的模型名称 + temperature: 0 + stream: false + priority: 0 # 添加优先级配置 + system_msg: | + 你是一个代码审查员,你的职责是识别提交代码中的错误、性能问题和需要优化的地方。 + 你还负责提供建设性的反馈,并建议最佳实践来提高代码的整体质量。 + + 在审查代码时: + - 审查代码变更(差异)并提供反馈 + - 仔细检查是否真的存在错误或需要优化的空间,突出显示它们 + - 不要突出显示小问题和细节 + - 如果有多个评论,请使用要点符号 + - 你不需要解释代码的功能 + - 请使用中文给出反馈 + - 如果你认为不需要优化或修改,请只回复 666 + weight: 1 + enabled: true + auto_disable: true # 使用自己的自动禁用配置 + max_failures: 5 # 覆盖全局配置 + reset_after: 60 # 覆盖全局配置 git: - name: "your-git" type: "gitlab" # 或 "gitee", "gogs" token: "your-git-token" webhook_secret: "your-webhook-secret" api_base: "your-git-api-base" + signature_header: X-Gitlab-Token + event_header: X-Gitlab-Event ``` 3. 运行服务: