Skip to content

Commit 56b11d8

Browse files
committed
Updated hints for api key format, accommodating GLM.
1 parent 0b7cb96 commit 56b11d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ def get_character_data():
116116
OPENROUTER_API_KEY = CORE_API_KEY
117117

118118
if not CORE_API_KEY.startswith('sk'):
119-
logger.error("💥 请检查Core API Key是否正确,通常以'sk-'开头。请在设置页面中重新设置。")
119+
logger.warning("⚠️ 请检查Core API Key是否正确,通常以'sk-'开头(智谱例外)。请在设置页面中重新设置。")

templates/api_key_settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ <h3>📋 获取API Key步骤</h3>
275275

276276
<div class="section">
277277
<div class="tips">
278-
💡 请确保API Key格式正确,通常以"sk-"开头。保存后需要重启服务才能生效。<br>
278+
💡 请确保API Key格式正确,通常以"sk-"开头(智谱例外)。保存后需要重启服务才能生效。<br>
279279
📝 个人使用环境,API Key将完整显示以便复制使用。
280280
</div>
281281

0 commit comments

Comments
 (0)