|
@@ -203,7 +203,7 @@ def get_access_token():
|
|
|
|
|
|
# 查询OpenAI接口,如赞同模型
|
|
|
def askOpenAI(question):
|
|
|
- global chats
|
|
|
+ global OPENAI_URL, chats
|
|
|
# 如果OPENAI_URL是/结尾,去掉最后的/
|
|
|
if OPENAI_URL[-1] == '/':
|
|
|
OPENAI_URL = OPENAI_URL[:-1]
|
|
@@ -433,8 +433,9 @@ erniecli version : show version")
|
|
|
while True:
|
|
|
cli = issueModel(question)
|
|
|
if cli == "":
|
|
|
- question = input("\033[A\033[2K\033[1;33mAI没有找到可执行的命令[\x1B[4m\033[37mA\x1B[0mbort/您的需求] \033[0m")
|
|
|
+ question = input("\033[A\033[2K\033[1;33mAI没有找到可执行的命令[\x1B[4m\033[37mA\x1B[0m\033[1;33mbort/您的需求] \033[0m")
|
|
|
if question == "A" or question == "a" or question == "":
|
|
|
+ print('已取消')
|
|
|
sys.exit(0)
|
|
|
else:
|
|
|
continue
|