0.1.31
This commit is contained in:
parent
6c2c155159
commit
f0d0875101
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.30
|
version = 0.1.31
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: guan
|
Name: guan
|
||||||
Version: 0.1.30
|
Version: 0.1.31
|
||||||
Summary: An open source python package
|
Summary: An open source python package
|
||||||
Home-page: https://py.guanjihuan.com
|
Home-page: https://py.guanjihuan.com
|
||||||
Author: guanjihuan
|
Author: guanjihuan
|
||||||
|
@ -411,7 +411,9 @@ def chat(prompt='你好', stream_show=1, top_p=0.8, temperature=0.8):
|
|||||||
if '连接失败!请过段时间再试或者联系管理员。' in stream_response:
|
if '连接失败!请过段时间再试或者联系管理员。' in stream_response:
|
||||||
print('连接失败!请过段时间再试或者联系管理员。')
|
print('连接失败!请过段时间再试或者联系管理员。')
|
||||||
break
|
break
|
||||||
if stream_response == '':
|
elif 'End_response_from_chat.guanjihuan.com.' in stream_response:
|
||||||
|
break
|
||||||
|
elif stream_response == '':
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if stream_show == 1:
|
if stream_show == 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user