tags are now separated by ' ' (old format is still readable)
This commit is contained in:
@@ -15,11 +15,11 @@ def process_tags(tags: list[str], extags: list[str], otags: list[str]) -> None:
|
||||
printed_messages = []
|
||||
|
||||
if tags:
|
||||
printed_messages.append(f"Tags: {', '.join(tags)}")
|
||||
printed_messages.append(f"Tags: {' '.join(tags)}")
|
||||
if extags:
|
||||
printed_messages.append(f"Excluding tags: {', '.join(extags)}")
|
||||
printed_messages.append(f"Excluding tags: {' '.join(extags)}")
|
||||
if otags:
|
||||
printed_messages.append(f"Output tags: {', '.join(otags)}")
|
||||
printed_messages.append(f"Output tags: {' '.join(otags)}")
|
||||
|
||||
if printed_messages:
|
||||
print("\n".join(printed_messages))
|
||||
@@ -41,7 +41,7 @@ def message_to_chat(message: Dict[str, str],
|
||||
append_message(chat, 'user', message['question'])
|
||||
append_message(chat, 'assistant', message['answer'])
|
||||
if with_tags:
|
||||
tags = ", ".join(message['tags'])
|
||||
tags = " ".join(message['tags'])
|
||||
append_message(chat, 'tags', tags)
|
||||
if with_file:
|
||||
append_message(chat, 'file', message['file'])
|
||||
|
||||
Reference in New Issue
Block a user