@@ -26,6 +26,7 @@ def chat(prompt_args: Tuple[str], skip_index: bool):
2626
2727 from typing import List
2828 from result import Ok
29+ from termcolor import colored
2930
3031 from mindflow .core .commands .chat import run_chat
3132 from mindflow .core .commands .index import run_index
@@ -34,15 +35,15 @@ def chat(prompt_args: Tuple[str], skip_index: bool):
3435 from mindflow .core .types .store_traits .json import save_json_store
3536
3637 async def stream_chat (settings : Settings , prompt : str ):
37- print ( "\n GPT:" )
38+ click . echo ( colored ( "\n GPT:" , attrs = [ "bold" ]) )
3839 async for char_stream_chunk in run_chat (settings , [], prompt ):
3940 if isinstance (char_stream_chunk , Ok ):
4041 click .echo (char_stream_chunk .value , nl = False )
4142 else :
4243 click .echo (char_stream_chunk .value )
4344
4445 async def stream_query (settings : Settings , file_paths : List [str ], prompt : str ):
45- print ( "\n GPT:" )
46+ click . echo ( colored ( "\n GPT:" , attrs = [ "bold" ]) )
4647 async for char_stream_chunk in run_query (settings , file_paths , prompt ):
4748 if isinstance (char_stream_chunk , Ok ):
4849 click .echo (char_stream_chunk .value , nl = False )
0 commit comments