Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GoogleGenerativeAI Error]: Candidate was blocked due to SAFETY #196

Open
keung67 opened this issue Feb 22, 2024 · 0 comments
Open

[GoogleGenerativeAI Error]: Candidate was blocked due to SAFETY #196

keung67 opened this issue Feb 22, 2024 · 0 comments

Comments

@keung67
Copy link

keung67 commented Feb 22, 2024

敏感詞Gemini會出錯,例句"講個笑話",觸發騷擾安全策略:
[GoogleGenerativeAI Error]: Candidate was blocked
但官方 https://gemini.google.com 不會擋

可否 add safetySettings, set block_none
參考:
google-gemini/generative-ai-python#126 (comment)
google/generative-ai-docs#212
是否可以增加参数,将gemini的安全阈值设置为BLOCK_NONE?
soulteary/amazing-openai-api#1
babaohuang/GeminiProChat#74
lobehub/lobe-chat#1387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant