foundry_set_content_safety_endpoint: Set Azure Content Safety Endpoint

View source: R/moderate.R

foundry_set_content_safety_endpointR Documentation

Set Azure Content Safety Endpoint

Description

Set the base endpoint URL for your Azure Content Safety resource.

Usage

foundry_set_content_safety_endpoint(endpoint, store = FALSE)

Arguments

endpoint

Character string containing the endpoint URL. Example: the endpoint URL from your Content Safety resource.

store

Logical. If TRUE, stores the endpoint in foundryR's package-specific user configuration file. Default: FALSE.

Value

Invisibly returns TRUE if endpoint was set successfully.

Examples


withr::with_envvar(c(AZURE_CONTENT_SAFETY_ENDPOINT = NA_character_), {
  foundry_set_content_safety_endpoint(
    "https://example.cognitiveservices.azure.com"
  )
})


foundryR documentation built on Sept. 25, 2026, 1:10 a.m.