Files
aiagent/backend/env.example

39 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 应用配置
APP_NAME=低代码智能体平台
APP_VERSION=1.0.0
DEBUG=True
SECRET_KEY=your-secret-key-here-change-in-production
# 数据库配置MySQL - 腾讯云)
DATABASE_URL=mysql+pymysql://root:!Rjb12191@gz-cynosdbmysql-grp-d26pzce5.sql.tencentcdb.com:24936/agent_db?charset=utf8mb4
# Redis配置
REDIS_URL=redis://localhost:6379/0
# 会话记忆是否同时写入 MySQL永久记忆设为 false 则仅 Redis + 进程内缓存
MEMORY_PERSIST_DB_ENABLED=true
# 本地文件工具 file_read / file_write 允许访问的根目录可选。留空则默认为「backend 的上一级」即仓库根
# LOCAL_FILE_TOOLS_ROOT=D:/aaa/aiagent
# LOCAL_FILE_READ_MAX_BYTES=2097152
# LOCAL_FILE_WRITE_MAX_BYTES=2097152
# CORS配置多个地址用逗号分隔
CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8038,http://101.43.95.130:8038
# OpenAI配置可选
OPENAI_API_KEY=your-openai-api-key
OPENAI_BASE_URL=https://api.openai.com/v1
# DeepSeek配置工作流 LLM 节点若选 DeepSeek 则必填;否则调用会 401
DEEPSEEK_API_KEY=your-deepseek-api-key
DEEPSEEK_BASE_URL=https://api.deepseek.com
# Anthropic配置可选
ANTHROPIC_API_KEY=your-anthropic-api-key
# JWT配置
JWT_SECRET_KEY=your-jwt-secret-key
JWT_ALGORITHM=HS256
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30