| foundry_build_v1_request | R Documentation |
Internal function to construct httr2 requests for Azure OpenAI in Microsoft Foundry's v1 data-plane API.
foundry_build_v1_request(
path,
body = NULL,
method = "POST",
api_key = NULL,
token = NULL,
endpoint = NULL,
api_version = NULL,
key_getter = foundry_get_key
)
path |
Character. The v1 API path, relative to |
body |
List. Optional request body. |
method |
Character. HTTP method. Default: |
api_key |
Character. Optional API key override. |
token |
Character. Optional bearer token override. |
endpoint |
Character. Optional endpoint override. |
api_version |
Character. Optional API version query value. Usually not required for v1 endpoints. |
key_getter |
Function used to resolve API keys. Defaults to
|
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.