Soumik Bose commited on
Commit ·
f161586
1
Parent(s): 585bc48
go
Browse files- controller.py +2 -2
- download_messages_log_helper.py +1 -1
controller.py
CHANGED
|
@@ -733,8 +733,8 @@ async def get_chat_log_endpoint(payload: ChatLogRequest, token: str = Depends(va
|
|
| 733 |
messages=payload.messages,
|
| 734 |
title=payload.title,
|
| 735 |
chat_id=payload.chatId,
|
| 736 |
-
output_dir="chat_pdfs",
|
| 737 |
-
include_stats=True
|
| 738 |
)
|
| 739 |
|
| 740 |
if not generated_pdf_path or not os.path.exists(generated_pdf_path):
|
|
|
|
| 733 |
messages=payload.messages,
|
| 734 |
title=payload.title,
|
| 735 |
chat_id=payload.chatId,
|
| 736 |
+
output_dir="chat_pdfs",
|
| 737 |
+
include_stats=True,
|
| 738 |
)
|
| 739 |
|
| 740 |
if not generated_pdf_path or not os.path.exists(generated_pdf_path):
|
download_messages_log_helper.py
CHANGED
|
@@ -29,7 +29,7 @@ def generate_chat_pdf(messages: List[Dict],
|
|
| 29 |
output_dir: str = "chat_pdfs",
|
| 30 |
participants: List[str] = None,
|
| 31 |
date_range: str = None,
|
| 32 |
-
cover_page: bool =
|
| 33 |
include_stats: bool = True) -> Optional[str]:
|
| 34 |
"""
|
| 35 |
Quick helper method to generate a chat PDF and return the file path.
|
|
|
|
| 29 |
output_dir: str = "chat_pdfs",
|
| 30 |
participants: List[str] = None,
|
| 31 |
date_range: str = None,
|
| 32 |
+
cover_page: bool = True,
|
| 33 |
include_stats: bool = True) -> Optional[str]:
|
| 34 |
"""
|
| 35 |
Quick helper method to generate a chat PDF and return the file path.
|