大模型多轮对话调用

This commit is contained in:
makexine 2023-10-25 17:20:52 +08:00 committed by GitHub
parent 600b98bdec
commit cef21524d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import requests
import urllib3
########################################
# 该文件实现了与大模型的简单通信
# 该文件实现了与大模型的简单通信、多轮对话输入end表示对话结束
########################################
# 忽略https的安全性警告
@ -26,4 +26,4 @@ while k!='end':
assistant_dict={"role": "assistant","content":answer}
data_memory.append(assistant_dict)
n=n+2
k=input()
k=input()