| foundry_set_endpoint | R Documentation |
Set the base endpoint URL for your Azure AI Foundry resource.
foundry_set_endpoint(endpoint, store = FALSE)
endpoint |
Character string containing the endpoint URL. Example: the endpoint URL from your Foundry resource. |
store |
Logical. If |
Invisibly returns TRUE if endpoint was set successfully.
withr::with_envvar(c(AZURE_FOUNDRY_ENDPOINT = NA_character_), {
foundry_set_endpoint("https://example.openai.azure.com")
foundry_get_endpoint()
})
local({
config_file <- tempfile("foundryR-config-", fileext = ".json")
on.exit(unlink(config_file))
withr::with_options(list(foundryR.config_file = config_file), {
withr::with_envvar(c(AZURE_FOUNDRY_ENDPOINT = NA_character_), {
foundry_set_endpoint("https://example.openai.azure.com", store = TRUE)
})
})
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.