Skip to content

Commit

Permalink
mod content safety endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruoccofabrizio committed Oct 23, 2023
1 parent db254e0 commit fbe036f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/utilities/helpers/EnvHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def __init__(self, **kwargs) -> None:
self.APPINSIGHTS_CONNECTION_STRING = os.getenv('APPINSIGHTS_CONNECTION_STRING', '')
# Azure AI Content Safety
self.AZURE_CONTENT_SAFETY_ENDPOINT = os.getenv('AZURE_CONTENT_SAFETY_ENDPOINT', '')
if 'https' not in self.AZURE_CONTENT_SAFETY_ENDPOINT and 'cognitiveservices.azure.com' not in self.AZURE_CONTENT_SAFETY_ENDPOINT:
self.AZURE_CONTENT_SAFETY_ENDPOINT = f"https://{self.AZURE_CONTENT_SAFETY_ENDPOINT}.cognitiveservices.azure.com/"
self.AZURE_CONTENT_SAFETY_KEY = os.getenv('AZURE_CONTENT_SAFETY_KEY', '')
# Orchestration Settings
self.ORCHESTRATION_STRATEGY = os.getenv('ORCHESTRATION_STRATEGY', 'openai_function')
Expand Down

0 comments on commit fbe036f

Please sign in to comment.