0.1.104
This commit is contained in:
parent
c9ac324783
commit
11950302de
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.103
|
version = 0.1.104
|
||||||
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.103
|
Version: 0.1.104
|
||||||
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
|
||||||
|
@ -18,6 +18,7 @@ def chat(prompt='你好', model=1, stream=0, top_p=0.8, temperature=0.85):
|
|||||||
client_socket.send(send_message.encode())
|
client_socket.send(send_message.encode())
|
||||||
if stream == 1:
|
if stream == 1:
|
||||||
print('\n--- Begin Stream Message ---\n')
|
print('\n--- Begin Stream Message ---\n')
|
||||||
|
response = ''
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data = client_socket.recv(1024)
|
data = client_socket.recv(1024)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user