This commit is contained in:
guanjihuan 2024-12-18 04:44:07 +08:00
parent 73fc56877b
commit 3f8682e89f
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[metadata] [metadata]
# replace with your username: # replace with your username:
name = guan name = guan
version = 0.1.134 version = 0.1.135
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

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: guan Name: guan
Version: 0.1.134 Version: 0.1.135
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

View File

@ -56,7 +56,7 @@ def chat(prompt='你好', stream=1, model=1, top_p=0.8, temperature=0.85):
break break
else: else:
if stream == 1: if stream == 1:
print(stream_response, end='') print(stream_response, end='', flush=True)
except: except:
break break
client_socket.close() client_socket.close()