| foundry_build_request | R Documentation |
Internal function to construct httr2 requests for Azure AI Foundry API.
foundry_build_request(
deployment,
endpoint_path,
body,
api_key = NULL,
token = NULL,
api_version = NULL
)
deployment |
Character. The deployment name. |
endpoint_path |
Character. The API endpoint path (e.g., "chat/completions"). |
body |
List. The request body. |
api_key |
Character. Optional API key override. |
token |
Character. Optional bearer token override. |
api_version |
Character. Optional API version override. |
An httr2 request object (not yet performed).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.