From 60ebac5bed5445bdddf2890c1d2dfd3e63fedd55 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Thu, 6 Mar 2025 09:12:48 +0800 Subject: [PATCH] 0.1.162 --- PyPI/setup.cfg | 2 +- PyPI/src/guan.egg-info/PKG-INFO | 2 +- PyPI/src/guan/data_processing.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PyPI/setup.cfg b/PyPI/setup.cfg index 0d32f42..e1e352a 100644 --- a/PyPI/setup.cfg +++ b/PyPI/setup.cfg @@ -1,7 +1,7 @@ [metadata] # replace with your username: name = guan -version = 0.1.161 +version = 0.1.162 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 fcfd5cb..c2b0d47 100644 --- a/PyPI/src/guan.egg-info/PKG-INFO +++ b/PyPI/src/guan.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.2 Name: guan -Version: 0.1.161 +Version: 0.1.162 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 94d9dbd..32c8b9a 100644 --- a/PyPI/src/guan/data_processing.py +++ b/PyPI/src/guan/data_processing.py @@ -13,7 +13,7 @@ def chat(prompt='你好', model=1, stream=1, stream_label=0): print('\n--- Start Chat Stream Message ---\n') requests_response = requests.post(url, json=data, stream=True) response = '' - if requests_response.status_code == 200: + if requests_response.status_code == 200: for line in requests_response.iter_lines(): if line: if stream == 1: @@ -361,7 +361,8 @@ def print_array(array, line_break=0): print(i0) else: for i0 in array: - print(i0+'\n') + print(i0) + print() # 以显示编号的样式,打印数组 def print_array_with_index(array, show_index=1, index_type=0):