Fix Think too long result crash
This commit is contained in:
parent
e4d71f9dc9
commit
abba72c03c
9
main.py
9
main.py
|
@ -384,7 +384,16 @@ while True:
|
|||
stdscr.addstr(23, 1, '[B] Back')
|
||||
|
||||
if think_result:
|
||||
for _ in range(100):
|
||||
try:
|
||||
stdscr.addstr(9, 4, think_result)
|
||||
break
|
||||
except:
|
||||
think_result = think_result[:-5]
|
||||
stdscr.addstr(22, 1, '')
|
||||
stdscr.clrtoeol()
|
||||
stdscr.addstr(23, 1, '[B] Back')
|
||||
stdscr.clrtoeol()
|
||||
|
||||
if not think_result and not think_to_send:
|
||||
stdscr.addstr(9, 1, 'Examples:')
|
||||
|
|
Loading…
Reference in New Issue
Block a user