feat:1.移除所有明文服务密钥,采用环境变量方式读取

2.回调信息简化 \ stylist_agent_server.py中 一部分逻辑更新
This commit is contained in:
zcr
2025-12-16 17:29:05 +08:00
parent 46b96995f0
commit 3e70324261
15 changed files with 173 additions and 152 deletions

View File

@@ -1,7 +1,7 @@
import logging.config
import os
import litserve as ls
from app.config import DEBUG, settings
from app.config import settings
from app.server.ChatbotAgent.agent_server import LCAgent
from app.server.ChatbotAgent.chatbot_server import LCChatBot
from app.server.ReFace.server import ReFace
@@ -21,7 +21,7 @@ logging.config.dictConfig(LOGGER_CONFIG_DICT)
# STEP 2: START THE SERVER
if __name__ == "__main__":
logger.info(f"DEBUG -> :{DEBUG}")
logger.info(f"运行环境 1表示本地运行0表示生产环境运行 -> :{settings.LOCAL}")
logger.info(f"VECTOR_DB_DIR -> :{settings.VECTOR_DB_DIR}")
chat_boot_api = LCChatBot(enable_async=True, stream=True, api_path='/api/v1/chatbot')
agent_api = LCAgent(enable_async=True, api_path='/api/v1/agent')