0.1.162
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| [metadata] | [metadata] | ||||||
| # replace with your username: | # replace with your username: | ||||||
| name = guan | name = guan | ||||||
| version = 0.1.161 | version = 0.1.162 | ||||||
| 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.2 | Metadata-Version: 2.2 | ||||||
| Name: guan | Name: guan | ||||||
| Version: 0.1.161 | Version: 0.1.162 | ||||||
| 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 | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ def chat(prompt='你好', model=1, stream=1, stream_label=0): | |||||||
|             print('\n--- Start Chat Stream Message ---\n') |             print('\n--- Start Chat Stream Message ---\n') | ||||||
|     requests_response = requests.post(url, json=data, stream=True) |     requests_response = requests.post(url, json=data, stream=True) | ||||||
|     response = '' |     response = '' | ||||||
|     if requests_response.status_code == 200:  |     if requests_response.status_code == 200: | ||||||
|         for line in requests_response.iter_lines(): |         for line in requests_response.iter_lines(): | ||||||
|             if line: |             if line: | ||||||
|                 if stream == 1: |                 if stream == 1: | ||||||
| @@ -361,7 +361,8 @@ def print_array(array, line_break=0): | |||||||
|             print(i0) |             print(i0) | ||||||
|     else: |     else: | ||||||
|         for i0 in array: |         for i0 in array: | ||||||
|             print(i0+'\n') |             print(i0) | ||||||
|  |             print() | ||||||
|  |  | ||||||
| # 以显示编号的样式,打印数组 | # 以显示编号的样式,打印数组 | ||||||
| def print_array_with_index(array, show_index=1, index_type=0): | def print_array_with_index(array, show_index=1, index_type=0): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user