Merge branch 'main' into chore/search_tool

This commit is contained in:
Puzhen Zhang 2025-11-03 18:56:49 +01:00 committed by GitHub
commit 4264b17fb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 242 additions and 44 deletions

View file

@ -57,7 +57,7 @@ async def post(data: Chat, request: Request):
chat_logger.info(f"Set search config: {key}", extra={"project_id": data.project_id})
email_sanitized = re.sub(r'[\\/*?:"<>|\s]', "_", data.email.split("@")[0]).strip(".")
camel_log = Path.home() / ".eigent" / email_sanitized / ("task_" + data.project_id) / "camel_logs"
camel_log = Path.home() / ".eigent" / email_sanitized / ("project_" + data.project_id) / ("task_" + data.task_id) / "camel_logs"
camel_log.mkdir(parents=True, exist_ok=True)
os.environ["CAMEL_LOG_DIR"] = str(camel_log)