| foundry_set_image_endpoint | R Documentation |
Set the Azure endpoint for image generation (DALL-E). Use this when your DALL-E model is deployed on a different Azure resource than your chat/embedding models.
foundry_set_image_endpoint(endpoint)
endpoint |
Character. The full Azure endpoint URL for image generation. |
If not set, foundry_image() will fall back to AZURE_FOUNDRY_ENDPOINT.
Use this function when DALL-E is deployed on a separate Azure resource.
Invisibly returns the endpoint that was set.
local({
old <- Sys.getenv("AZURE_FOUNDRY_IMAGE_ENDPOINT", unset = NA_character_)
on.exit({
if (is.na(old)) {
Sys.unsetenv("AZURE_FOUNDRY_IMAGE_ENDPOINT")
} else {
Sys.setenv(AZURE_FOUNDRY_IMAGE_ENDPOINT = old)
}
})
foundry_set_image_endpoint("https://example.openai.azure.com")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.