Browse Source

feat: 修改审核制度

zhangwl 1 month ago
parent
commit
bcd8affc8b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/routers/moderation.py

+ 2 - 1
app/routers/moderation.py

@@ -255,10 +255,11 @@ async def moderate_content(request: ModerationRequest):
 
     try:
         response = client.responses.create(
-            model=Config.MODEL_NAME,
+            model="doubao-seed-2-0-mini-260428",
             input=[system_msg, user_msg],
             stream=False,
             store=False,  # 无状态审核,不保存上下文,提升性能
+            thinking={"type": "disabled"},  # 关闭深度思考,降低简单审核任务耗时
             text={"format": {"type": "text"}},
         )
     except Exception as e: