From a8726fcc0c2ef8f52ba4ec84348fc34bfecf7f6e Mon Sep 17 00:00:00 2001 From: RexWzh <1073853456@qq.com> Date: Thu, 2 Nov 2023 00:13:10 +0800 Subject: [PATCH] update version --- chattool/__init__.py | 2 +- setup.py | 2 +- tests/test_async.py | 2 +- tests/test_function.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chattool/__init__.py b/chattool/__init__.py index c138e45..955dd25 100644 --- a/chattool/__init__.py +++ b/chattool/__init__.py @@ -2,7 +2,7 @@ __author__ = """Rex Wang""" __email__ = '1073853456@qq.com' -__version__ = '2.3.3' +__version__ = '2.3.4' import os, sys, requests from .chattool import Chat, Resp diff --git a/setup.py b/setup.py index 0eb31f2..ab248fa 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('README.md') as readme_file: readme = readme_file.read() -VERSION = '2.3.3' +VERSION = '2.3.4' requirements = [ 'Click>=7.0', 'requests>=2.20', "responses>=0.23", diff --git a/tests/test_async.py b/tests/test_async.py index ee10160..11f78f9 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -58,7 +58,7 @@ def test_normal_process(): chkpoint = testpath + "test_nomal.jsonl" def data2chat(data): chat = Chat(data) - chat.getresponse() + chat.getresponse(max_requests=3) return chat t = time.time() process_chats(chatlogs, data2chat, chkpoint, clearfile=True) diff --git a/tests/test_function.py b/tests/test_function.py index b9aaf7b..5d9172b 100644 --- a/tests/test_function.py +++ b/tests/test_function.py @@ -100,7 +100,7 @@ def test_add_and_mult(): chat.name2func = {'add': add} # dictionary of functions chat.function_call = 'auto' # auto decision # run until success: maxturns=-1 - chat.autoresponse(max_requests=2, display=True, maxturns=-1) + chat.autoresponse(max_requests=2, display=True) # response should be finished chat.simplify() chat.print_log()