started to implement sub-commands

This commit is contained in:
2023-08-11 18:12:49 +02:00
parent df91ca863a
commit 6406d2f5b5
5 changed files with 176 additions and 116 deletions
+8 -8
View File
@@ -63,14 +63,14 @@ def save_answers(question: str,
f.write(f'{num}')
def create_chat(question: Optional[str],
tags: Optional[List[str]],
extags: Optional[List[str]],
config: Dict[str, Any],
match_all_tags: bool = False,
with_tags: bool = False,
with_file: bool = False
) -> List[Dict[str, str]]:
def create_chat_hist(question: Optional[str],
tags: Optional[List[str]],
extags: Optional[List[str]],
config: Dict[str, Any],
match_all_tags: bool = False,
with_tags: bool = False,
with_file: bool = False
) -> List[Dict[str, str]]:
chat: List[Dict[str, str]] = []
append_message(chat, 'system', config['system'].strip())
for file in sorted(pathlib.Path(config['db']).iterdir()):