mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
22 lines
695 B
Plaintext
22 lines
695 B
Plaintext
# Gitea配置
|
|
GITEA_API_URL=http://localhost:3000/api/v1
|
|
GITEA_ACCESS_TOKEN=your_gitea_token
|
|
|
|
# OpenAI配置
|
|
OPENAI_BASE_URL=https://api.openai.com/v1
|
|
OPENAI_API_KEY=your_openai_key
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
CUSTOM_SUMMARY_PROMPT=your_custom_prompt
|
|
CUSTOM_LINE_COMMENT_PROMPT=your_custom_prompt
|
|
|
|
# 飞书配置
|
|
FEISHU_WEBHOOK_URL=https://open.feishu.cn/open-apis/bot/v2/hook/your_webhook_token
|
|
FEISHU_WEBHOOK_SECRET=your_webhook_secret
|
|
|
|
# 应用配置
|
|
PORT=3000
|
|
# 建议使用以下命令生成一个安全的随机字符串作为webhook密钥:
|
|
# 在Linux/Mac终端: openssl rand -hex 32
|
|
# 或者在Node.js中: require('crypto').randomBytes(32).toString('hex')
|
|
WEBHOOK_SECRET=your_webhook_secret
|