From 0d0ae4a95a4a6a6e384c23a97c06f7ecfdcd8905 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Wed, 14 Feb 2024 21:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dninja?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index f7b6d49..b8737cf 100644 --- a/main.py +++ b/main.py @@ -2261,7 +2261,7 @@ def chat_completions(): if REFRESH_TOACCESS_ENABLEOAI: api_key = oaiGetAccessToken(api_key) else: - api_key = ninjaGetAccessToken(REFRESH_TOACCESS_XYHELPER_REFRESHTOACCESS_URL, api_key) + api_key = ninjaGetAccessToken(REFRESH_TOACCESS_NINJA_REFRESHTOACCESS_URL, api_key) if not api_key.startswith("eyJhb"): return jsonify({"error": "refresh_token is wrong or refresh_token url is wrong!"}), 401 add_to_dict(refresh_token, api_key) @@ -2426,7 +2426,7 @@ def images_generations(): refresh_token = api_key api_key = oaiGetAccessToken(api_key) else: - api_key = ninjaGetAccessToken(REFRESH_TOACCESS_XYHELPER_REFRESHTOACCESS_URL, api_key) + api_key = ninjaGetAccessToken(REFRESH_TOACCESS_NINJA_REFRESHTOACCESS_URL, api_key) if not api_key.startswith("eyJhb"): return jsonify({"error": "refresh_token is wrong or refresh_token url is wrong!"}), 401 add_to_dict(refresh_token, api_key) @@ -2606,7 +2606,7 @@ def updateRefresh_dict(): refresh_token = key access_token = oaiGetAccessToken(key) else: - access_token = ninjaGetAccessToken(REFRESH_TOACCESS_XYHELPER_REFRESHTOACCESS_URL, key) + access_token = ninjaGetAccessToken(REFRESH_TOACCESS_NINJA_REFRESHTOACCESS_URL, key) if not access_token.startswith("eyJhb"): logger.debug("refresh_token is wrong or refresh_token url is wrong!") error_num += 1