Refactor message.Answer class in a way, that it can be constructed dynamically step by step, in preparation of using streaming API.
This commit is contained in:
@@ -101,7 +101,7 @@ def create_message(chat: ChatDB, args: argparse.Namespace) -> Message:
|
||||
if code_file is not None and len(code_file) > 0:
|
||||
add_file_as_code(question_parts, code_file)
|
||||
|
||||
full_question = '\n\n'.join(question_parts)
|
||||
full_question = '\n\n'.join([str(s) for s in question_parts])
|
||||
|
||||
message = Message(question=Question(full_question),
|
||||
tags=args.output_tags,
|
||||
|
||||
Reference in New Issue
Block a user