This commit is contained in:
guanjihuan 2023-11-16 04:02:04 +08:00
parent f0d0875101
commit 1f536d080d
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[metadata]
# replace with your username:
name = guan
version = 0.1.31
version = 0.1.32
author = guanjihuan
author_email = guanjihuan@163.com
description = An open source python package

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: guan
Version: 0.1.31
Version: 0.1.32
Summary: An open source python package
Home-page: https://py.guanjihuan.com
Author: guanjihuan

View File

@ -391,7 +391,7 @@ def chat(prompt='你好', stream_show=1, top_p=0.8, temperature=0.8):
response = ''
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as client_socket:
client_socket.settimeout(10)
client_socket.settimeout(15)
client_socket.connect(('socket.guanjihuan.com', 12345))
message = {
'server': "chat.guanjihuan.com",