mirror of
https://github.com/Kakune55/PyGetGPT.git
synced 2025-06-28 15:58:04 +08:00
添加上下文关联开关提示
This commit is contained in:
parent
02ee3f8396
commit
1c36a170b0
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user