This commit is contained in:
29
docs/blog/posts/2025_11_25.md
Normal file
29
docs/blog/posts/2025_11_25.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
authors:
|
||||||
|
- passthem
|
||||||
|
categories:
|
||||||
|
- 日志
|
||||||
|
- 此方 Bot
|
||||||
|
date: 2025-11-25
|
||||||
|
readtime: 1
|
||||||
|
slug: update-2025-11-25
|
||||||
|
---
|
||||||
|
|
||||||
|
# 2025 年 11 月 25 日基础设施更新
|
||||||
|
|
||||||
|
以下是 2025 年 11 月 25 日的基础设施更新情况。
|
||||||
|
|
||||||
|
## 此方 Bot 引入了阿里绿网云盾
|
||||||
|
|
||||||
|
对于云盾,详细可见[阿里官方文档](https://help.aliyun.com/document_detail/2671445.html?spm=a2c4g.11186623.0.0.11e05674MYxuDc#54b02ff4efehj)。使用方法:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from konabot.common.apis.ali_content_safety import AlibabaGreen
|
||||||
|
|
||||||
|
async def main():
|
||||||
|
if await AlibabaGreen.detect("正常文本"):
|
||||||
|
print("没有检测到违规情况")
|
||||||
|
else:
|
||||||
|
print("发现违规异常")
|
||||||
|
```
|
||||||
|
|
||||||
Reference in New Issue
Block a user