Commit fd6349e0 by nzy

Use system multiline

parent e1a5c292
...@@ -11,7 +11,7 @@ import openai ...@@ -11,7 +11,7 @@ import openai
import time import time
import os import os
import pickle import pickle
import prompt_toolkit import sys
import traceback import traceback
np.set_printoptions(threshold=np.inf) np.set_printoptions(threshold=np.inf)
...@@ -64,7 +64,7 @@ def rich_dumps(obj): ...@@ -64,7 +64,7 @@ def rich_dumps(obj):
def multiline_input(): def multiline_input():
system_info("Press [Esc] followed by [Enter] to accept input.") system_info("Press [Esc] followed by [Enter] to accept input.")
buffer = prompt_toolkit.prompt(">", multiline=True, wrap_lines=False, mouse_support=True) buffer = sys.stdin.read()
return buffer return buffer
sys_str = "[bold red]SYSTEM: [/bold red]" sys_str = "[bold red]SYSTEM: [/bold red]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment