From 87f1147fcaf25727f8a246d491e1a22c47e5501f Mon Sep 17 00:00:00 2001 From: yinpeng <2291314224@qq.com> Date: Mon, 20 Jan 2025 15:46:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BB=A5=E5=85=B3=E9=97=AD=E5=85=AC=E6=B0=91?= =?UTF-8?q?=E8=AF=9A=E4=BF=A1=E7=B1=BB=E5=88=AB=E7=9A=84=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/gemini_chat_service.py | 2 +- app/services/openai_chat_service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/gemini_chat_service.py b/app/services/gemini_chat_service.py index 58df814..db42587 100644 --- a/app/services/gemini_chat_service.py +++ b/app/services/gemini_chat_service.py @@ -86,7 +86,7 @@ class GeminiChatService: {"category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "OFF"}, {"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "OFF"}, {"category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "OFF"}, - {"category": "HARM_CATEGORY_CIVIC_INTEGRITY", "threshold": "BLOCK_ONLY_HIGH"} + {"category": "HARM_CATEGORY_CIVIC_INTEGRITY", "threshold": "OFF"} ] return [ {"category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE"}, diff --git a/app/services/openai_chat_service.py b/app/services/openai_chat_service.py index a1a6cb5..fc0d9b2 100644 --- a/app/services/openai_chat_service.py +++ b/app/services/openai_chat_service.py @@ -133,7 +133,7 @@ class OpenAIChatService: {"category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "OFF"}, {"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "OFF"}, {"category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "OFF"}, - {"category": "HARM_CATEGORY_CIVIC_INTEGRITY", "threshold": "BLOCK_ONLY_HIGH"} + {"category": "HARM_CATEGORY_CIVIC_INTEGRITY", "threshold": "OFF"} ] return [ {"category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_NONE"},