Skip to content

Commit 5bb743c

Browse files
committed
change function name
1 parent f8f799b commit 5bb743c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aipyapp/aipy/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from dynaconf import Dynaconf
44
from .i18n import T
55

6-
def is_valid_openai_api_key(api_key):
6+
def is_valid_api_key(api_key):
77
"""
88
校验是否为有效的 API Key 格式。
99
API Key 格式为字母、数字、减号、下划线的组合,长度在 8 到 128 之间
@@ -69,7 +69,7 @@ def _init_llm(self):
6969
if not user_token:
7070
print(T('no_token_detected'))
7171
continue
72-
if not is_valid_openai_api_key(user_token):
72+
if not is_valid_api_key(user_token):
7373
print(T('invalid_token'))
7474
continue
7575

0 commit comments

Comments
 (0)