This commit is contained in:
Saedbhati 2025-10-10 10:05:44 +05:30
parent 08143704f7
commit 6f36829c93
33 changed files with 278 additions and 114 deletions

View file

@ -5,7 +5,7 @@ from pathlib import Path
from dotenv import load_dotenv
from fastapi import APIRouter, Request, Response
from fastapi.responses import StreamingResponse
from app.utils import traceroot_wrapper as traceroot
from utils import traceroot_wrapper as traceroot
from app.component import code
from app.exception.exception import UserException
from app.model.chat import Chat, HumanReply, McpServers, Status, SupplementChat
@ -38,7 +38,7 @@ async def post(data: Chat, request: Request):
set_user_env_path(data.env_path)
load_dotenv(dotenv_path=data.env_path)
# logger.debug(f"start chat: {data.model_dump_json()}")
chat_logger.debug(f"start chat: {data.model_dump_json()}")
os.environ["file_save_path"] = data.file_save_path()
os.environ["browser_port"] = str(data.browser_port)