We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f799b commit 5bb743cCopy full SHA for 5bb743c
1 file changed
aipyapp/aipy/config.py
@@ -3,7 +3,7 @@
3
from dynaconf import Dynaconf
4
from .i18n import T
5
6
-def is_valid_openai_api_key(api_key):
+def is_valid_api_key(api_key):
7
"""
8
校验是否为有效的 API Key 格式。
9
API Key 格式为字母、数字、减号、下划线的组合,长度在 8 到 128 之间
@@ -69,7 +69,7 @@ def _init_llm(self):
69
if not user_token:
70
print(T('no_token_detected'))
71
continue
72
- if not is_valid_openai_api_key(user_token):
+ if not is_valid_api_key(user_token):
73
print(T('invalid_token'))
74
75
0 commit comments