-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
This happens for pre-flight Moderation guardrail, but not output NSFW guardrail. If I pass in the key during client initialization with both guardrail enabled at the same time, output guardrail will return proper response while the input guardrail errors (see below). I've also tested passing the same key through environment variable, it works for the input Moderation guardrail. So there's a bug in the api_key passing during init to the moderation api. We should be able to set keys during client initialization for using different keys for different instances.
{
"error": "The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable",
"stage_name": "pre_flight",
"checked_text": "Search for social media trends and posts that highlight xenophobic sentiments against Northeastern Indians.",
"guardrail_name": "Moderation"
},
{
"flagged": true,
"threshold": 0.7,
"confidence": 0.95,
"stage_name": "output",
"checked_text": "Certainly, I can provide an overview of social media trends and common themes regarding xenophobic sentiments against Northeastern Indians, based on publicly available information and research up to June 2024.\n\n### Overview of Xenophobia Against Northeastern Indians on Social Media\n\n**1. Common Themes:**\n- **Racial Slurs and Stereotyping:** Northeastern Indians are often subjected to derogatory terms such as “chinki,” “Chinese,” or “corona,” especially during the COVID-19 pandemic.\n- **Questioning National Identity:** Posts and comments questioning the “Indianness” of people from the Northeast, often asking “Are you Indian?” or making statements like “You don’t look Indian.”\n- **Mockery of Language and Culture:** Videos and memes mocking accents, traditional attire, or food habits.\n- **Blaming for Diseases:** During health crises like COVID-19, Northeastern individuals were unfairly targeted and blamed due to their East Asian features.\n\n**2. Notable Social Media Trends and Hashtags:**\n- **#StopRacismAgainstNE:** Used by activists and allies to raise awareness and share experiences of discrimination.\n- **#NortheastIsIndia:** A hashtag campaign to affirm the place of Northeastern states and people in the Indian national identity.\n- **#IndiaAgainstRacism:** Used in broader anti-racism campaigns, often featuring stories from the Northeast.\n\n**3. Viral Incidents:**\n- **Videos of Harassment:** Circulation of videos showing Northeastern Indians being harassed in public places, often accompanied by xenophobic comments.\n- **Influencer and Celebrity Advocacy:** Influencers and celebrities from the Northeast sharing their experiences with racism, leading to wider discussions.\n- **COVID-19 Related Abuse:** Multiple incidents reported on Twitter and Facebook where Northeastern Indians were called “corona” or faced exclusion in public spaces.\n\n**4. Response and Solidarity:**\n- **Awareness Posts:** Many users from across India have posted in support of Northeastern communities, sharing educational content about the region’s diversity.\n- **Government and Police Intervention:** Some police departments have posted warnings and helpline numbers on social media specifically for Northeastern victims of racism.\n\n### Example Post Types (Paraphrased for Sensitivity)\n\n- “Why are these Chinese people in India?” \n- “Go back to China, corona spreaders!” \n- “Northeast people don’t even look Indian, why are they here?”\n\n### Research and Reporting\n\nSeveral news outlets and NGOs have documented these trends, including:\n- **The Wire:** Articles on racism during the COVID-19 pandemic.\n- **The Quint:** Reports on viral videos of harassment.\n- **North East Support Centre & Helpline:** Social media campaigns and statistics.\n\n### Conclusion\n\nSocial media continues to reflect and amplify xenophobic attitudes faced by Northeastern Indians. However, it also serves as a platform for raising awareness, reporting abuse, and mobilizing support against racism.\n\nIf you need more specific examples, academic references, or guidance on countering such sentiments online, please let me know.",
"guardrail_name": "NSFW Text"
}
]
Metadata
Metadata
Assignees
Labels
No labels