From 7190c99b8e2867b842e2be05e623b664d7e693b2 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Tue, 14 Nov 2023 23:56:50 +0800 Subject: [PATCH] 0.1.29 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/data_processing.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 2d99e9b..1e6fb64 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.28 +version = 0.1.29 author = guanjihuan author_email = guanjihuan@163.com description = An open source python package diff --git a/PyPI/src/guan.egg-info/PKG-INFO b/PyPI/src/guan.egg-info/PKG-INFO index 160024c..663ad6f 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: guan -Version: 0.1.28 +Version: 0.1.29 Summary: An open source python package Home-page: https://py.guanjihuan.com Author: guanjihuan diff --git a/PyPI/src/guan/data_processing.py b/PyPI/src/guan/data_processing.py index 0ccee07..a25744d 100644 --- a/PyPI/src/guan/data_processing.py +++ b/PyPI/src/guan/data_processing.py @@ -384,15 +384,15 @@ def get_PID(name): guan.statistics_of_guan_package() return id_running -# 在CPU上运行大语言模型,通过Python函数调用 -def chat(message='你好', stream_show=1): +# 在服务器上运行大语言模型,通过Python函数调用 +def chat(prompt='你好', stream_show=1): import socket response = '' try: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as client_socket: client_socket.settimeout(10) client_socket.connect(('socket.guanjihuan.com', 12345)) - send_message = "chat.guanjihuan.com |---| " + message + send_message = "chat.guanjihuan.com |---| " + prompt client_socket.send(send_message.encode()) try: while True: