添加上下文关联开关提示

This commit is contained in:
Kakune55 2023-11-04 15:21:25 +08:00
parent 02ee3f8396
commit 1c36a170b0

View File

@ -58,8 +58,12 @@ 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:
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]