空欄処理
parent
0718e0f67b
commit
ad47920387
|
|
@ -261,7 +261,7 @@ If you understand, please reply to the following:<|end_of_turn|>
|
|||
if prompt is None:
|
||||
prompt = tag[len('')]
|
||||
ret_message = ret_message.replace(tag, '')
|
||||
if ret_message == '':
|
||||
if ret_message.isspace():
|
||||
return None, prompt
|
||||
end_index = ret_message.rfind('![')
|
||||
if end_index >= 0:
|
||||
|
|
|
|||
Loading…
Reference in New Issue