foundry_build_v1_request: Build Azure AI Foundry v1 Request

View source: R/utils.R

foundry_build_v1_requestR Documentation

Build Azure AI Foundry v1 Request

Description

Internal function to construct httr2 requests for Azure OpenAI in Microsoft Foundry's v1 data-plane API.

Usage

foundry_build_v1_request(
  path,
  body = NULL,
  method = "POST",
  api_key = NULL,
  token = NULL,
  endpoint = NULL,
  api_version = NULL,
  key_getter = foundry_get_key
)

Arguments

path

Character. The v1 API path, relative to ⁠/openai/v1/⁠.

body

List. Optional request body.

method

Character. HTTP method. Default: "POST".

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 foundry_get_key().

Value

An httr2 request object (not yet performed).


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