Skip to content

Commit 07f2a0f

Browse files
authored
Security Fix
Remove all presentation of any part of API keys.
1 parent 744a93a commit 07f2a0f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

astrbot/core/provider/sources/openai_source.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,7 @@ async def _handle_api_error(
685685
) -> tuple:
686686
"""处理API错误并尝试恢复"""
687687
if "429" in str(e):
688-
logger.warning(
689-
f"API 调用过于频繁,尝试使用其他 Key 重试。当前 Key: {chosen_key[:12]}",
690-
)
688+
logger.warning("API 调用过于频繁,尝试使用其他 Key 重试")
691689
if retry_cnt < max_retries - 1:
692690
await asyncio.sleep(1)
693691
if chosen_key in available_api_keys:

0 commit comments

Comments
 (0)