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

| ERROR | stderr | KeyError: 'CONTENT_SAFETY_ENDPOINT' #16

Open
dengweihuan opened this issue Feb 27, 2024 · 1 comment
Open

| ERROR | stderr | KeyError: 'CONTENT_SAFETY_ENDPOINT' #16

dengweihuan opened this issue Feb 27, 2024 · 1 comment

Comments

@dengweihuan
Copy link

how to solve the problem of "| ERROR | stderr | KeyError: 'CONTENT_SAFETY_ENDPOINT'" and "KeyError: '"CONTENT_SAFETY_KEY"'". Please tell me what should I set these two variables to.

@mattmazzola
Copy link
Collaborator

mattmazzola commented Feb 29, 2024

CONTENT_SAFETY_ENDPOINT and CONTENT_SAFETY_KEY are environment variables you set if you are using any of the Azure AI Content Safety moderation flags (Suffixed with *_aics)

I removed these moderation flags from main branch in this PR in hopes that these variables are only needed if you choose AICS moderation
https://github.com/LLaVA-VL/LLaVA-Interactive-Demo/pull/14/files#diff-9561ba98374bfa0ae04e9489e6fcf01cb78e9216b1f31d6322250769bf2e96afL36-L46

To provision Azure AI Content Safety Resource and get the endpoint and key, see the documentation:
https://learn.microsoft.com/en-us/azure/ai-services/content-safety/overview

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

No branches or pull requests

2 participants