Fix handling of -q and -s, add pre-commit checks.

This commit is contained in:
Oleksandr Kozachuk
2023-04-19 15:28:19 +02:00
parent ad10af8f4f
commit df2f5e01a5
5 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def create_chat(question: Optional[str],
extags: Optional[List[str]],
config: Dict[str, Any]
) -> List[Dict[str, str]]:
chat = []
chat: List[Dict[str, str]] = []
append_message(chat, 'system', config['system'].strip())
for file in sorted(pathlib.Path(config['db']).iterdir()):
if file.suffix == '.yaml':