From 1c36a170b0eafb516ad692ee0cd6b5bac2e66d78 Mon Sep 17 00:00:00 2001 From: Kakune55 Date: Sat, 4 Nov 2023 15:21:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=B8=8B=E6=96=87?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=BC=80=E5=85=B3=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client.py b/client.py index d522d52..149e739 100644 --- a/client.py +++ b/client.py @@ -58,9 +58,13 @@ while True: req = json.loads(requests.post(url=config['url'],json=data).text) except: print("Internet Err : Can not connect Server") + input() break if req["code"] == 200: - print(f"\n>> AI:\n{req['output']}\n\n<剩余tokens:{req['surplus']} >") + if config["context"] == 1: + print(f"\n>> AI:\n{req['output']}\n\n<剩余tokens:{req['surplus']} ><已启用上下文关联>") + else: + print(f"\n>> AI:\n{req['output']}\n\n<剩余tokens:{req['surplus']} >") history[1][1] = history[0][1] history[1][0] = history[0][0] history[0][1] = req['output']