-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.env.sample
More file actions
97 lines (84 loc) · 3.13 KB
/
.env.sample
File metadata and controls
97 lines (84 loc) · 3.13 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
89
90
91
92
93
94
95
96
97
# CodeDog 环境变量示例文件
# 复制此文件为 .env 并填入您的实际配置值
# ===== 平台配置 =====
# 选择一个平台: GitHub 或 GitLab
# GitHub 配置
GITHUB_TOKEN="your_github_personal_access_token"
# GitLab 配置
# 如果使用 GitLab 而不是 GitHub
# GITLAB_TOKEN="your_gitlab_personal_access_token"
# 对于自托管实例,修改为您的 GitLab URL
# GITLAB_URL="https://gitlab.com"
# ===== LLM 配置 =====
# 选择一种配置方式: OpenAI, Azure OpenAI, DeepSeek 或 MindConnect
# OpenAI 配置
# 标准 OpenAI API
OPENAI_API_KEY="your_openai_api_key"
# Azure OpenAI 配置
# 如果使用 Azure 的 OpenAI 服务
# AZURE_OPENAI="true"
# AZURE_OPENAI_API_KEY="your_azure_openai_api_key"
# AZURE_OPENAI_API_BASE="https://your-instance.openai.azure.com/"
# 可选,默认会使用一个较新的版本
# AZURE_OPENAI_API_VERSION="2023-05-15"
# 用于代码摘要和评审的 GPT-3.5 部署
# AZURE_OPENAI_DEPLOYMENT_ID="your_gpt35_deployment_name"
# 用于 PR 摘要的 GPT-4 部署
# AZURE_OPENAI_GPT4_DEPLOYMENT_ID="your_gpt4_deployment_name"
# DeepSeek 配置
# 如果使用 DeepSeek 模型
# DEEPSEEK_API_KEY="your_deepseek_api_key"
# DeepSeek 模型名称
DEEPSEEK_MODEL="deepseek-chat"
# DeepSeek API 基础 URL
DEEPSEEK_API_BASE="https://api.deepseek.com"
# DeepSeek 温度参数
DEEPSEEK_TEMPERATURE="0"
# DeepSeek 最大token数
DEEPSEEK_MAX_TOKENS="4096"
# DeepSeek top_p参数
DEEPSEEK_TOP_P="0.95"
# DeepSeek 超时时间(秒)
DEEPSEEK_TIMEOUT="60"
# DeepSeek R1 特定配置
DEEPSEEK_R1_API_BASE="https://api.deepseek.com"
DEEPSEEK_R1_MODEL="deepseek-reasoner"
# ===== 模型选择配置 =====
# 可选值: "gpt-3.5", "gpt-4", "gpt-4o", "deepseek", "deepseek-r1" 或任何 OpenAI 模型名称
CODE_SUMMARY_MODEL="gpt-3.5"
PR_SUMMARY_MODEL="gpt-3.5"
CODE_REVIEW_MODEL="gpt-3.5"
# 特定模型版本配置
# GPT-3.5 模型名称,默认为 "gpt-3.5-turbo"
# GPT35_MODEL="gpt-3.5-turbo-16k"
# GPT-4 模型名称,默认为 "gpt-4"
# GPT4_MODEL="gpt-4-turbo"
# GPT-4o 模型名称,默认为 "gpt-4o"
# GPT4O_MODEL="gpt-4o-mini"
# ===== 电子邮件通知配置 =====
# 启用电子邮件通知
EMAIL_ENABLED="false"
# 接收通知的邮箱,多个邮箱用逗号分隔
NOTIFICATION_EMAILS="your_email@example.com"
# SMTP 服务器配置
# 用于发送电子邮件通知
# Gmail SMTP 配置说明:
# 1. 必须在 Google 账户开启两步验证: https://myaccount.google.com/security
# 2. 创建应用专用密码: https://myaccount.google.com/apppasswords
# 3. 使用应用专用密码而非您的常规Gmail密码
# Gmail SMTP 服务器地址
SMTP_SERVER="smtp.gmail.com"
# Gmail SMTP 服务器端口
SMTP_PORT="587"
# 发送邮件的 Gmail 账户
SMTP_USERNAME="your_email@gmail.com"
# SMTP_PASSWORD 应该是应用专用密码,不是您的 Gmail 登录密码
SMTP_PASSWORD="your_app_specific_password"
# ===== 开发者评价配置 =====
# 默认包含的文件类型
DEV_EVAL_DEFAULT_INCLUDE=".py,.js,.java,.ts,.tsx,.jsx,.c,.cpp,.h,.hpp"
# 默认排除的文件类型
DEV_EVAL_DEFAULT_EXCLUDE=".md,.txt,.json,.lock,.gitignore"
# ===== 其他可选配置 =====
# 日志级别,可以是 DEBUG, INFO, WARNING, ERROR
LOG_LEVEL="INFO"