# Original code SAFETY_SETTTINGS = [ { "category": "HARM_CATEGORY_SEXUAL", "threshold": "BLOCK_ONLY_HIGH", }, { "category": "HARM_CATEGORY_DANGEROUS", "threshold": "BLOCK_ONLY_HIGH", }, { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_ONLY_HIGH", }, { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_ONLY_HIGH", }, { "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "BLOCK_ONLY_HIGH", }, { "category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "BLOCK_ONLY_HIGH", }, ] # Modified code to allow uninterrupted chat session MODIFIED_SAFETY_SETTTINGS = [] # Set all thresholds to "ALLOW_ALL" to disable blocking for setting in MODIFIED_SAFETY_SETTTINGS: setting["threshold"] = "ALLOW_ALL"