mirror of
https://github.com/Kakune55/PyGetGPT.git
synced 2025-06-29 00:08:04 +08:00
添加上下文关联开关提示
This commit is contained in:
parent
02ee3f8396
commit
1c36a170b0
@ -58,8 +58,12 @@ while True:
|
|||||||
req = json.loads(requests.post(url=config['url'],json=data).text)
|
req = json.loads(requests.post(url=config['url'],json=data).text)
|
||||||
except:
|
except:
|
||||||
print("Internet Err : Can not connect Server")
|
print("Internet Err : Can not connect Server")
|
||||||
|
input()
|
||||||
break
|
break
|
||||||
if req["code"] == 200:
|
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']} >")
|
print(f"\n>> AI:\n{req['output']}\n\n<剩余tokens:{req['surplus']} >")
|
||||||
history[1][1] = history[0][1]
|
history[1][1] = history[0][1]
|
||||||
history[1][0] = history[0][0]
|
history[1][0] = history[0][0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user