fix các bug theo yêu cầu https://fptsoftware362-my.sharepoint.com/❌/g/personal/nampdt_fpt_com/IQAHBJ4A9xqDTLgvt2bhukJEAdRB5LRz2hbJpTivvIiBSYM?wdExp=TEAMS-TREATMENT&web=1&isSPOFile=1&ovuser=f01e930a-b52e-42b1-b70f-a8882b5d043b%2CAnhTNM1%40fpt.com&clickparams=eyJBcHBOYW1lIjoiVGVhbXMtRGVza3RvcCIsIkFwcFZlcnNpb24iOiI0OS8yNjA4MTMxOTMxNyIsIkhhc0ZlZGVyYXRlZFVzZXIiOmZhbHNlfQ%3D%3D --------- Co-authored-by: Duy Le Huu <duylh19@fpt.com> Reviewed-on: #10 Co-authored-by: Anh Tran Nguyen Minh <anhtnm1@fpt.com>
This commit was merged in pull request #10.
This commit is contained in:
@@ -110,6 +110,16 @@ def _slugify(name: str) -> str:
|
||||
return s or "project"
|
||||
|
||||
|
||||
#: Lich su hoi thoai cua mot project nam TRONG thu muc lam viec cua no, de chia
|
||||
#: se thu muc do la chia se ca lich su (may khac xem va tiep tuc duoc).
|
||||
HISTORY_SUBDIR = ".cowork_history"
|
||||
|
||||
|
||||
def project_history_dir(project) -> Path:
|
||||
"""Thư mục lịch sử hội thoại của một project."""
|
||||
return project.workspace_dir() / HISTORY_SUBDIR
|
||||
|
||||
|
||||
def new_project(name: str, description: str = "", instructions: str = "",
|
||||
output_dir: str = "", directory: Path = None) -> Project:
|
||||
"""Create + persist a new project with a unique id derived from the name."""
|
||||
|
||||
Reference in New Issue
Block a user