1. 管理后台支持为不同 Agent 应用上传和管理视频、PDF 等新手指南资料。
2. 前端聊天界面根据后台配置,动态展示“新手指南”入口。
3. 用户点击后可直接在系统内预览视频或 PDF 文档。
This commit is contained in:
runny committed 2026-06-04 12:47:21 +08:00
1 parent cc53d29e76
commit f8de4630a5
19 files changed
+742 -122

No files matched your search

+10
View File
@@ -160,6 +160,14 @@ class Config:
SMTP_USE_TLS = os.getenv('SMTP_USE_TLS', 'true').lower() == 'true'
INTERNAL_API_BASE_URL = os.getenv('INTERNAL_API_BASE_URL', 'http://127.0.0.1:5052')
# MinIO 配置
MINIO_ENDPOINT = os.getenv('MINIO_ENDPOINT', '127.0.0.1:9000')
MINIO_ACCESS_KEY = os.getenv('MINIO_ACCESS_KEY', 'minioadmin')
MINIO_SECRET_KEY = os.getenv('MINIO_SECRET_KEY', 'minioadmin')
MINIO_SECURE = os.getenv('MINIO_SECURE', 'false').lower() == 'true'
MINIO_BUCKET_NAME = os.getenv('MINIO_BUCKET_NAME', 'agent-guides')
MINIO_PUBLIC_BASE_URL = os.getenv('MINIO_PUBLIC_BASE_URL', 'http://127.0.0.1:9000')
class DevelopmentConfig(Config):
DEBUG = True
@@ -180,9 +188,11 @@ class TestingConfig(Config):
config = {
'dev': DevelopmentConfig,
'development': DevelopmentConfig,
'test': TestingConfig,
'testing': TestingConfig, # alias for create_app('testing') in pytest
'prod': ProductionConfig,
'production': ProductionConfig,
'default': DevelopmentConfig,
}