#feature: add AI log analysis & some bugfix
This commit is contained in:
20
.env.example
20
.env.example
@@ -106,3 +106,23 @@ GIT_MONITOR_PROJECTS="service,portal-be,agent-be"
|
||||
|
||||
# Admin IP whitelist (comma separated, supports wildcard: 192.168.* or 192.168.1.*)
|
||||
TOOLBOX_ADMIN_IPS=
|
||||
|
||||
# Alibaba Cloud SLS Configuration
|
||||
SLS_ENDPOINT=cn-hangzhou.log.aliyuncs.com
|
||||
SLS_PROJECT=your-project
|
||||
# 支持单个或多个 logstore(多个用逗号分隔)
|
||||
SLS_LOGSTORE=your-logstore
|
||||
SLS_ACCESS_KEY_ID=
|
||||
SLS_ACCESS_KEY_SECRET=
|
||||
SLS_SECURITY_TOKEN=
|
||||
SLS_QUERY_TIMEOUT=60
|
||||
|
||||
# AI Service Configuration (OpenAI compatible) - 可在页面上配置多个 AI 服务并切换
|
||||
# 以下为默认配置,实际使用时可在 configs 表中配置 log_analysis.ai_providers
|
||||
AI_ENDPOINT=https://api.openai.com/v1
|
||||
AI_API_KEY=
|
||||
AI_MODEL=gpt-4o
|
||||
AI_TEMPERATURE=0.3
|
||||
AI_TIMEOUT=120
|
||||
AI_MAX_TOKENS=4096
|
||||
|
||||
|
||||
Reference in New Issue
Block a user